mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 08:35:36 +08:00
Add: Added new exception to ENABLE_EXCEPTION option
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user