From 6e4f90bdf4c056f210e05ca0aac7b88709e77ce2 Mon Sep 17 00:00:00 2001 From: Weiduhuo <1281586535@qq.com> Date: Thu, 12 Oct 2023 10:47:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20try=5Focr=5Frelic=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=9C=AA=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/relic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/relic.py b/utils/relic.py index ba571c34..a54bfd84 100644 --- a/utils/relic.py +++ b/utils/relic.py @@ -436,6 +436,7 @@ def try_ocr_relic(self, equip_set_index:int = None, max_retries = 3) -> dict: 返回: :return result_data: 遗器数据包 """ + retry = 0 while True: # 视作偶发错误进行重试 try: data = self.ocr_relic(equip_set_index)