fix: locale设置兼容

This commit is contained in:
caoqianming 2023-08-07 00:17:38 +08:00
parent 5899831935
commit c15c9e630a
1 changed files with 1 additions and 1 deletions

View File

@ -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 ''