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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user