From 985ca6c72a60f98e6d6e2a0bff89d6a9d5762bae Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Sat, 7 Mar 2026 11:53:12 +0100 Subject: [PATCH] Fix dead code check and typo in base.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove always-true `elapsed_time is not None` check (elapsed_time is always an int) and fix "propably" → "probably" typo. Co-Authored-By: Claude Opus 4.6 --- python_anticaptcha/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_anticaptcha/base.py b/python_anticaptcha/base.py index 7e93a4f..db654d3 100644 --- a/python_anticaptcha/base.py +++ b/python_anticaptcha/base.py @@ -64,7 +64,7 @@ def join(self, maximum_time=None): while not self.check_is_ready(): time.sleep(SLEEP_EVERY_CHECK_FINISHED) elapsed_time += SLEEP_EVERY_CHECK_FINISHED - if elapsed_time is not None and elapsed_time > maximum_time: + if elapsed_time > maximum_time: raise AnticaptchaException( None, 250, @@ -108,7 +108,7 @@ def _check_response(self, response): if response.get("errorId", False) == 11: response[ "errorDescription" - ] = "{} Your missing IP address is propably {}.".format( + ] = "{} Your missing IP address is probably {}.".format( response["errorDescription"], self.client_ip ) if response.get("errorId", False):