mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-21 22:03:18 -07:00
Removed deprecated getdefaultlocale (#2345)
This commit is contained in:
parent
7696d031d3
commit
71d7c4dddf
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ def main():
|
|||
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
plexpy.SYS_LANGUAGE, plexpy.SYS_ENCODING = locale.getdefaultlocale()
|
||||
plexpy.SYS_LANGUAGE, plexpy.SYS_ENCODING = locale.getlocale()
|
||||
if not plexpy.SYS_ENCODING:
|
||||
plexpy.SYS_ENCODING = locale.getencoding()
|
||||
except (locale.Error, IOError):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue