From 4f6fdd7d08348292f0f13e9bc376a612189af14a Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Fri, 10 Jan 2025 21:01:46 +0100 Subject: [PATCH] Fix: Properly ignore unsupported locale Generalize exception to catch anything locale error. Related #2507 Fixes #2765 --- lib/solaar/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/i18n.py b/lib/solaar/i18n.py index 1d4976ca30..3125723b5d 100644 --- a/lib/solaar/i18n.py +++ b/lib/solaar/i18n.py @@ -47,7 +47,7 @@ def set_locale_to_system_default(): """ try: locale.setlocale(locale.LC_ALL, "") - except PermissionError: + except Exception: pass try: