Skip to content

Commit 8ab233d

Browse files
ad-mAdam Dobrawyclaude
authored
Fix dead code check and typo in base.py (#112)
Remove always-true `elapsed_time is not None` check (elapsed_time is always an int) and fix "propably" → "probably" typo. Co-authored-by: Adam Dobrawy <naczelnik@jawne.info.pl> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c34a09 commit 8ab233d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python_anticaptcha/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def join(self, maximum_time=None):
6464
while not self.check_is_ready():
6565
time.sleep(SLEEP_EVERY_CHECK_FINISHED)
6666
elapsed_time += SLEEP_EVERY_CHECK_FINISHED
67-
if elapsed_time is not None and elapsed_time > maximum_time:
67+
if elapsed_time > maximum_time:
6868
raise AnticaptchaException(
6969
None,
7070
250,
@@ -108,7 +108,7 @@ def _check_response(self, response):
108108
if response.get("errorId", False) == 11:
109109
response[
110110
"errorDescription"
111-
] = "{} Your missing IP address is propably {}.".format(
111+
] = "{} Your missing IP address is probably {}.".format(
112112
response["errorDescription"], self.client_ip
113113
)
114114
if response.get("errorId", False):

0 commit comments

Comments
 (0)