Skip to content

Commit

Permalink
Strange error under some systems restoring the locale
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Oct 11, 2023
1 parent 54b6698 commit e5f34aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PyMca5/tests/SpecfileTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
else:
other_locale = l
break
locale.setlocale(locale.LC_ALL, current_locale)
try:
locale.setlocale(locale.LC_ALL, current_locale)
except Exception:
other_locale = False

class testSpecfile(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit e5f34aa

Please sign in to comment.