mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 14:20:08 +01:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDMac4vGGcBhoUB5V6bvFK
This commit is contained in:
co-authored by
Claude Opus 5
parent
691aaa6f3f
commit
c7633b4525
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user