1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +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
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()