1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Opt: Better tips when having wrong configs

This commit is contained in:
LmeSzinc
2021-12-31 01:34:01 +08:00
parent 70b35b6ad0
commit cd0204f455
5 changed files with 12 additions and 9 deletions

View File

@@ -603,4 +603,6 @@ class ConfigTypeChecker:
logger.critical(f'Task `{func}` has an invalid setting {".".join(path)}="{str(value)}". '
f'Current type: {type_to_str(value)}, expected type: {type_to_str(typ)}')
logger.critical('Please check your settings')
raise RequestHumanTakeover
raise RequestHumanTakeover(
f'Task `{func}` has an invalid setting {".".join(path)}="{str(value)}". '
f'Current type: {type_to_str(value)}, expected type: {type_to_str(typ)}')