mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 07:02: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:
|
||||
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')
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user