1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-27 16:45:37 +08:00

Add: Added new exception to ENABLE_EXCEPTION option

This commit is contained in:
whoamikyo
2020-06-20 07:15:15 -03:00
parent 6af59ce3eb
commit b90fef9522

View File

@@ -113,4 +113,8 @@ class CampaignBase(Map):
return True return True
logger.warning('Battle function exhausted.') logger.warning('Battle function exhausted.')
raise ScriptError('Battle function exhausted.') if self.config.ENABLE_EXCEPTION:
raise ScriptError('Battle function exhausted.')
else:
logger.warning('ScriptError, Battle function exhausted, Withdrawing because enable_exception = no')
self.withdraw()