Fix: use ui_ensure to handle FATE(Unknown ui page) (#3885)

This commit is contained in:
Air111 2024-06-13 22:32:51 +08:00 committed by GitHub
parent f70bb61ee6
commit f3c48d1263
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,7 +188,7 @@ class RewardShipyard(ShipyardUI, GeneralShop):
# due to both text and number being
# right-aligned together
# Retrieve information from page_reshmenu instead
self.ui_goto(page_reshmenu)
self.ui_ensure(page_reshmenu)
# OCR_SHOP_GOLD_COINS is slower than RESHMENU_CHECK
timeout = Timer(1, count=1).start()
skip_first_screenshot = True