1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-26 13:57:53 +08:00

Opt: Catch KeyboardInterrupt in web server

- Opt: Add one screen shot before task starts, which will update image after a long wait
This commit is contained in:
LmeSzinc
2021-10-06 16:49:47 +08:00
parent 17e42ef206
commit d3cb28c10f
2 changed files with 13 additions and 11 deletions

View File

@@ -229,6 +229,7 @@ class AzurLaneAutoScript:
del self.__dict__['config']
logger.info(f'Scheduler: Start task `{self.config.task}`')
self.device.screenshot()
logger.hr(self.config.task, level=0)
success = self.run(inflection.underscore(self.config.task))