mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 13:17:00 +08:00
Fix: Handle exception caused by multiple tries without material
This commit is contained in:
@@ -216,6 +216,10 @@ class Enhancement(Dock):
|
|||||||
logger.info(f'Call state function: {state}')
|
logger.info(f'Call state function: {state}')
|
||||||
|
|
||||||
if state == "state_enhance_check":
|
if state == "state_enhance_check":
|
||||||
|
# Avoid too_many_click exception caused by multiple tries without material
|
||||||
|
if state_list[-3:-1] == ["state_enhance_recommend", "state_enhance_fail"]:
|
||||||
|
self.device.click_record.pop()
|
||||||
|
self.device.click_record.pop()
|
||||||
state_list.clear()
|
state_list.clear()
|
||||||
state_list.append(state)
|
state_list.append(state)
|
||||||
if len(state_list) > 30:
|
if len(state_list) > 30:
|
||||||
|
|||||||
Reference in New Issue
Block a user