Skip to content

Commit

Permalink
fix: Improve Turnstile verification handling with default success case
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng zhen committed Feb 5, 2025
1 parent ce3a049 commit 622e65e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cursor_pro_keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 622e65e

Please sign in to comment.