fix: locale设置兼容
This commit is contained in:
parent
5899831935
commit
c15c9e630a
|
@ -20,7 +20,7 @@ def get_chinese_description(type:str = 'interval', data: dict = {}):
|
|||
croniter(exp)
|
||||
except ValueError:
|
||||
return ''
|
||||
locale.setlocale(locale.LC_ALL, 'zh_CN.UTF-8')
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
return get_description(exp)
|
||||
return ''
|
||||
|
||||
|
|
Loading…
Reference in New Issue