fix captcha handler
This commit is contained in:
parent
5817496228
commit
2f9fe8c534
@ -68,4 +68,4 @@ def captcha_handler(captcha):
|
||||
client = AnticaptchaClient(config.anticaptcha_token)
|
||||
job = client.createTask(ImageToTextTask(BytesIO(requests.get(captcha.get_url()).content)))
|
||||
job.join()
|
||||
return job.get_captcha_text()
|
||||
return captcha.try_again(job.get_captcha_text())
|
||||
|
Loading…
Reference in New Issue
Block a user