feat: add HandledError exception and log errors in alas.py

This commit is contained in:
2026-07-06 22:40:28 +08:00
parent 511a5b40ca
commit 77d4b19f9c
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -119,6 +119,9 @@ class AzurLaneAutoScript:
else:
self.checker.wait_until_available()
return False
except HandledError as e:
logger.error(e)
return False
except ScriptError as e:
logger.critical(e)
logger.critical('This is likely to be a mistake of developers, but sometimes just random issues')
+6
View File
@@ -17,6 +17,12 @@ class GameTooManyClickError(Exception):
pass
class HandledError(Exception):
# Error handled before raising
# No extra handling required, just retry
pass
class EmulatorNotRunningError(Exception):
pass