提交 d0d5c7dd 编写于 作者: Z Zhangyifan

setting.conf配置文件SCAN_DB_INTERVAL 参数值为0用户提示

上级 76b42f1c
......@@ -62,7 +62,7 @@ def check_settings_conf():
required_settings = ['LISTEN', 'GITHUB_ACCESS_TOKEN', 'GITEE_ACCESS_TOKEN', 'SCAN_DB_INTERVAL', 'USER', 'PASSWORD']
for setting in required_settings:
if setting in app.config:
if not app.config[setting]:
if app.config[setting] == "":
logger.error('%s is empty in settings.conf.', setting)
setting_error = True
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册