Merge pull request #3888 from hSaria/3491-webhook-error-message

Fixes #3491: Include content of webhook error response
This commit is contained in:
Jeremy Stretch
2020-01-13 11:33:25 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -60,5 +60,5 @@ def process_webhook(webhook, data, model_name, event, timestamp, username, reque
return 'Status {} returned, webhook successfully processed.'.format(response.status_code)
else:
raise requests.exceptions.RequestException(
"Status {} returned, webhook FAILED to process.".format(response.status_code)
"Status {} returned with content '{}', webhook FAILED to process.".format(response.status_code, response.content)
)