# HG changeset patch # User Marcin Kuzminski # Date 2018-02-15 22:23:58 # Node ID dd15af208c62354b6f7fe067ea6dcc68a1e8a943 # Parent 4e61488e172ce249bc65ab97305c7b6d4f35fcba integrations: webhook handle response errors and show response for easier debugging. diff --git a/rhodecode/integrations/types/webhook.py b/rhodecode/integrations/types/webhook.py --- a/rhodecode/integrations/types/webhook.py +++ b/rhodecode/integrations/types/webhook.py @@ -387,4 +387,8 @@ def post_to_webhook(url_calls, settings) }, headers=call_headers, auth=auth) log.debug('Got Webhook response: %s', resp) - resp.raise_for_status() # raise exception on a failed request + try: + resp.raise_for_status() # raise exception on a failed request + except Exception: + log.error(resp.text) + raise