We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d14cdc9 commit 558f81eCopy full SHA for 558f81e
InteractiveHtmlBom/core/units.py
@@ -15,7 +15,11 @@
15
import locale
16
17
current_locale = locale.setlocale(locale.LC_NUMERIC)
18
-locale.setlocale(locale.LC_NUMERIC, '')
+try:
19
+ locale.setlocale(locale.LC_NUMERIC, '')
20
+except Exception as ignore:
21
+ # sometimes setlocale with empty string doesn't work on OSX
22
+ pass
23
decimal_separator = locale.localeconv()['decimal_point']
24
locale.setlocale(locale.LC_NUMERIC, current_locale)
25
0 commit comments