From b604d0cd07a13811f4b20c28e50f356eeede50c9 Mon Sep 17 00:00:00 2001 From: cheng zhen Date: Sun, 29 Dec 2024 12:49:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=82=AE=E7=AE=B1=E6=98=AF=E5=90=A6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cursor_pro_keep_alive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cursor_pro_keep_alive.py b/cursor_pro_keep_alive.py index d6ab1f0..665cd0f 100644 --- a/cursor_pro_keep_alive.py +++ b/cursor_pro_keep_alive.py @@ -123,6 +123,7 @@ def delete_account(browser, tab): tab.ele("@name=password").input(password) print("输入密码") time.sleep(random.uniform(1, 3)) + except Exception as e: print("输入密码失败") @@ -141,6 +142,9 @@ def delete_account(browser, tab): # 处理验证码 while True: try: + if tab.ele("Invalid email or password"): + print("Invalid email or password") + return False if tab.ele("Account Settings"): break if tab.ele("@data-index=0"):