Change how debug is handled
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2020-07-24 09:17:53 +02:00
parent 8d2f8e9266
commit 99a9ad8469

View File

@ -94,7 +94,6 @@ def curl_content(url, params=None, ajax=False):
except (RequestException, CloudflareException, CaptchaException) as e: except (RequestException, CloudflareException, CaptchaException) as e:
output = '' output = ''
http_code = 500 http_code = 500
if IS_DEBUG:
getLogger().exception(e) getLogger().exception(e)
return {'http_code': http_code, 'output': output} return {'http_code': http_code, 'output': output}