From 622e65ebcf0afc210cbfcb9a3d9e1f501ebd9625 Mon Sep 17 00:00:00 2001 From: cheng zhen Date: Wed, 5 Feb 2025 20:53:59 +0800 Subject: [PATCH] fix: Improve Turnstile verification handling with default success case --- cursor_pro_keep_alive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cursor_pro_keep_alive.py b/cursor_pro_keep_alive.py index f2b2e6f9..58e14d08 100644 --- a/cursor_pro_keep_alive.py +++ b/cursor_pro_keep_alive.py @@ -137,7 +137,9 @@ def handle_turnstile(tab, max_wait_time=60, retry_attempts=3): except Exception as e: logging.debug(f"处理验证时发生异常: {str(e)}") continue - + else: + logging.info("未检测到Turnstile验证") + return True time.sleep(1) except Exception as e: