Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Apr 29, 2024
1 parent 4f92487 commit 2b6d941
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions task/ManXunTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ def handle_dialog_with_retry(self, choice):
for i in range(2):
try:
self.do_handle_dialog(choice)
return True
return
except Finished as e:
raise e
except Exception as e:
self.log_error("处理对话框异常 重试一次", e)
self.sleep(2)
continue

def do_handle_dialog(self, choice, retry=0):
def do_handle_dialog(self, choice):
boxes = self.ocr(self.dialog_zone)
if self.find_depth(boxes) > 0:
self.log_info(f"没有弹窗, 进行下一步")
Expand Down

0 comments on commit 2b6d941

Please sign in to comment.