未验证 提交 03468ce6 编写于 作者: H Hongsheng Zeng 提交者: GitHub

fix locale exception (#228)

上级 e9d08fae
......@@ -34,7 +34,10 @@ os.environ['XPARL'] = 'True'
# Solve `Click will abort further execution because Python 3 was configured
# to use ASCII as encoding for the environment` error.
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
try:
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
except:
pass
#TODO: this line will cause error in python2/macOS
if sys.version_info.major == 3:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册