From eb479e329aede58682eaf582a7b4c7cf962eb8d0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 7 Nov 2025 00:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A2=9E=E5=8A=A0,=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=BB=A3=E7=90=86=E9=87=8D=E8=AF=95.=20?= =?UTF-8?q?=E6=9C=89=E4=BA=9B=E4=BB=A3=E7=90=86=E4=BC=9A=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=88=96=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index 66ce642..78d0dcc 100644 --- a/spider/task.py +++ b/spider/task.py @@ -995,7 +995,8 @@ def playwright_m_login(username, password, code_2fa=None): else: browser.close() raise OperationFailed(failed_login.text_content()) - break # 退出代理重试循环 + else: + break # 退出代理重试循环 # 判断是否有多重验证 success_login1 = page.query_selector(success_login_selector1)