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)
|
croniter(exp)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return ''
|
return ''
|
||||||
locale.setlocale(locale.LC_ALL, 'zh_CN.UTF-8')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
return get_description(exp)
|
return get_description(exp)
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue