Fix: Properly ignore unsupported locale

Generalize exception to catch anything locale error.

Related #2507
Fixes #2765
This commit is contained in:
MattHag 2025-01-10 21:01:46 +01:00 committed by Peter F. Patel-Schneider
parent 41e652609b
commit 3de575b697
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def set_locale_to_system_default():
"""
try:
locale.setlocale(locale.LC_ALL, "")
except PermissionError:
except Exception:
pass
try: