1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 20:58:19 +08:00

Fix: Catch errors and show info

- No attribute ui_current, if start from unsupported page
- ModuleNotFoundError, if map file not exists
- ModuleNotFoundError, if run daily_ab on SP map
This commit is contained in:
LmeSzinc
2020-06-23 00:26:05 +08:00
parent e25adcf8fc
commit 03a78b835e
3 changed files with 23 additions and 3 deletions

View File

@@ -76,6 +76,10 @@ class UI(ModuleBase):
return page_main
logger.info('Unable to goto page_main')
logger.warning('Starting from current page is not supported')
logger.warning(f'Supported page: {[str(page) for page in self.ui_pages]}')
logger.warning(f'Supported page: Any page with a "HOME" button on the upper-right')
exit(1)
def ui_goto(self, destination, skip_first_screenshot=False):
"""