misc: ignore exceptions when trying to set locale
This commit is contained in:
parent
eda0a95585
commit
5117028c52
|
@ -47,7 +47,11 @@ def _find_locale_path(lc_domain):
|
|||
# del _path
|
||||
|
||||
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
language, encoding = locale.getlocale()
|
||||
del locale
|
||||
|
||||
|
|
Loading…
Reference in New Issue