Add some more system metrics

This commit is contained in:
JonnyWong16 2018-02-22 09:20:58 -08:00
parent 700547b63b
commit 51b5e615f5
3 changed files with 39 additions and 12 deletions

View file

@ -62,7 +62,7 @@ def main():
try:
locale.setlocale(locale.LC_ALL, "")
plexpy.SYS_ENCODING = locale.getpreferredencoding()
plexpy.SYS_LANGUAGE, plexpy.SYS_ENCODING = locale.getdefaultlocale()
except (locale.Error, IOError):
pass