feat: fixed a bug

This commit is contained in:
RTAkland
2021-12-16 21:00:12 +08:00
parent 5ad45b5f1c
commit a16d3a89d4

View File

@@ -20,15 +20,15 @@ settings = read_config()
if not os.path.exists('./logs'): if not os.path.exists('./logs'):
os.mkdir('./logs') os.mkdir('./logs')
for mail in settings['mail-settings'].values(): for mail in settings[0].values():
if not mail: if not mail:
Logger.critical('mail-settings 有未填写项目') Logger.critical('mail-settings 有未填写项目')
sys.exit(1) sys.exit(1)
for request in settings['request-settings'].values(): for request in settings[1].values():
if not request: if not request:
Logger.critical('request-settings 有未填写项目') Logger.critical('request-settings 有未填写项目')
sys.exit(1) sys.exit(1)
for other in settings['client-settings'].values(): for other in settings[1].values():
if not other: if not other:
Logger.critical('client-settings 有未填写项目') Logger.critical('client-settings 有未填写项目')
sys.exit(1) sys.exit(1)