Change how debug is handled
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michel Roux 2020-07-24 09:17:53 +02:00
parent 8d2f8e9266
commit 99a9ad8469
1 changed files with 1 additions and 2 deletions

View File

@ -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}