mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Add: Added new exception to ENABLE_EXCEPTION option
This commit is contained in:
parent
6af59ce3eb
commit
b90fef9522
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user