Commit 9bd1d88a authored by Pierre-Yves Chibon's avatar Pierre-Yves Chibon

The webhook server must always be running

This means, we log potential errors but don't raise any exceptions
parent e7e6ed2f
......@@ -86,11 +86,11 @@ def call_web_hooks(project, topic, msg):
data={'payload': msg}
)
if not req:
raise pagure.exceptions.PagureException(
log.info(
'An error occured while querying: %s - '
'Error code: %s' % (url, req.status_code))
except (requests.exceptions.RequestException, Exception) as err:
raise pagure.exceptions.PagureException(
log.info(
'An error occured while querying: %s - Error: %s' % (
url, err))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment