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