From 8d2f8e9266f6c304da7fe6dc546c877e7342477e Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 24 Jul 2020 09:15:19 +0200 Subject: [PATCH] Fix API change --- pynyaata/connectors/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index 6fe2a4c..94d4bce 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -6,7 +6,7 @@ from functools import wraps from logging import getLogger from cloudscraper import create_scraper -from cloudscraper.exceptions import CloudflareException, reCaptchaException +from cloudscraper.exceptions import CloudflareException, CaptchaException from requests import RequestException from ..config import CACHE_TIMEOUT, IS_DEBUG, REQUESTS_TIMEOUT, TWOCAPTCHA_API_KEY @@ -91,7 +91,7 @@ def curl_content(url, params=None, ajax=False): output = response.text http_code = response.status_code - except (RequestException, CloudflareException, reCaptchaException) as e: + except (RequestException, CloudflareException, CaptchaException) as e: output = '' http_code = 500 if IS_DEBUG: