Fix: Properly ignore unsupported locale
Generalize exception to catch anything locale error. Related #2507 Fixes #2765
This commit is contained in:
committed by
Peter F. Patel-Schneider
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:
|
||||
|
||||
Reference in New Issue
Block a user