##// END OF EJS Templates
integrations: webhook handle response errors and show response for easier debugging.
marcink -
r2581:dd15af20 default
parent child Browse files
Show More
@@ -387,4 +387,8 b' def post_to_webhook(url_calls, settings)'
387 }, headers=call_headers, auth=auth)
387 }, headers=call_headers, auth=auth)
388 log.debug('Got Webhook response: %s', resp)
388 log.debug('Got Webhook response: %s', resp)
389
389
390 resp.raise_for_status() # raise exception on a failed request
390 try:
391 resp.raise_for_status() # raise exception on a failed request
392 except Exception:
393 log.error(resp.text)
394 raise
General Comments 0
You need to be logged in to leave comments. Login now