mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 09:37:41 +08:00
Opt: Handler GamePageUnknownError when server is under maintenance
This commit is contained in:
parent
aa4d7b4b08
commit
70f1a68e94
12
alas.py
12
alas.py
@ -85,9 +85,15 @@ class AzurLaneAutoScript:
|
|||||||
self.device.sleep(10)
|
self.device.sleep(10)
|
||||||
return False
|
return False
|
||||||
except GamePageUnknownError:
|
except GamePageUnknownError:
|
||||||
logger.critical('Game page unknown')
|
logger.info('Game server may be under maintenance, check server status now')
|
||||||
self.save_error_log()
|
self.checker.check_now()
|
||||||
exit(1)
|
if self.checker.is_available():
|
||||||
|
logger.critical('Game page unknown')
|
||||||
|
self.save_error_log()
|
||||||
|
exit(1)
|
||||||
|
else:
|
||||||
|
self.checker.wait_until_available()
|
||||||
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user