From c7633b452514b063390247b03ef3e329fdd2fcc4 Mon Sep 17 00:00:00 2001 From: ThePhaseless Date: Mon, 17 Aug 2026 11:13:40 +0200 Subject: [PATCH] revert: leave max_attempts alone sys.maxsize was the original bug, but only because solve_captcha was called in a retry loop. That call is gone, so MAX_ATTEMPTS now only reaches ClickSolver at construction and never bounds anything; the solve loop is bounded by timer.remaining(). Reverting a change that no longer does anything. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01TDMac4vGGcBhoUB5V6bvFK --- src/consts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/consts.py b/src/consts.py index fa3329f..eb30c7c 100644 --- a/src/consts.py +++ b/src/consts.py @@ -1,4 +1,5 @@ import logging +import sys from pydantic_settings import BaseSettings, SettingsConfigDict @@ -9,7 +10,7 @@ class Settings(BaseSettings): log_level: str = "INFO" version: str = "unknown" - max_attempts: int = 5 + max_attempts: int = sys.maxsize proxy_server: str | None = None proxy_username: str | None = None