Skip to content

Commit

Permalink
Fix: Properly ignore unsupported locale
Browse files Browse the repository at this point in the history
Generalize exception to catch anything locale error.

Related #2507
Fixes #2765
  • Loading branch information
MattHag committed Jan 10, 2025
1 parent e9a58fb commit 4f6fdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solaar/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_locale_to_system_default():
"""
try:
locale.setlocale(locale.LC_ALL, "")
except PermissionError:
except Exception:
pass

try:
Expand Down

0 comments on commit 4f6fdd7

Please sign in to comment.