From 2f9fe8c534711a894fbadca3e4402e75e440ed5f Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 8 Feb 2019 17:22:17 +0300 Subject: [PATCH] fix captcha handler --- feeds/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/utils.py b/feeds/utils.py index c0f9ebe..6792369 100644 --- a/feeds/utils.py +++ b/feeds/utils.py @@ -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())