From 99a9ad846928cf59a1e937d3c784062e0e83dafc Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 24 Jul 2020 09:17:53 +0200 Subject: [PATCH] Change how debug is handled --- pynyaata/connectors/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index 94d4bce..d4b0d4d 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -94,8 +94,7 @@ def curl_content(url, params=None, ajax=False): except (RequestException, CloudflareException, CaptchaException) as e: output = '' http_code = 500 - if IS_DEBUG: - getLogger().exception(e) + getLogger().exception(e) return {'http_code': http_code, 'output': output}