fix captcha handler

This commit is contained in:
bakatrouble 2019-02-08 17:22:17 +03:00
parent 5817496228
commit 2f9fe8c534

View File

@ -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())