Fix: Properly ignore unsupported locale
Generalize exception to catch anything locale error. Related #2507 Fixes #2765
This commit is contained in:
parent
41e652609b
commit
3de575b697
|
@ -47,7 +47,7 @@ def set_locale_to_system_default():
|
|||
"""
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, "")
|
||||
except PermissionError:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue