Change how debug is handled
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8d2f8e9266
commit
99a9ad8469
@ -94,8 +94,7 @@ 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}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user