1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Workaround for inability to set locale - fallback to 'C' locale

Fixes #355
This commit is contained in:
Jonathan Harris 2018-10-28 10:41:30 +00:00
parent a74bf40f8f
commit 88f6e28e75

View File

@ -15,7 +15,11 @@ from traceback import print_exc
import __builtin__
import locale
locale.setlocale(locale.LC_ALL, '')
try:
locale.setlocale(locale.LC_ALL, '')
except:
# Locale env variables incorrect or locale package not installed/configured on Linux, mysterious reasons on Windows
print "Can't set locale!"
from config import config