mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 22:12:06 +00:00
feat: add HandledError exception and log errors in alas.py
This commit is contained in:
@@ -119,6 +119,9 @@ class AzurLaneAutoScript:
|
|||||||
else:
|
else:
|
||||||
self.checker.wait_until_available()
|
self.checker.wait_until_available()
|
||||||
return False
|
return False
|
||||||
|
except HandledError as e:
|
||||||
|
logger.error(e)
|
||||||
|
return False
|
||||||
except ScriptError as e:
|
except ScriptError as e:
|
||||||
logger.critical(e)
|
logger.critical(e)
|
||||||
logger.critical('This is likely to be a mistake of developers, but sometimes just random issues')
|
logger.critical('This is likely to be a mistake of developers, but sometimes just random issues')
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ class GameTooManyClickError(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class HandledError(Exception):
|
||||||
|
# Error handled before raising
|
||||||
|
# No extra handling required, just retry
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class EmulatorNotRunningError(Exception):
|
class EmulatorNotRunningError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user