Refactor remove webhooks logs

remotes/origin/4.0rc
Álex Hermida 2018-10-12 10:14:44 +02:00 committed by Alex Hermida
parent 9aaf45c725
commit 09f8ada4c2
1 changed files with 2 additions and 2 deletions

View File

@ -97,10 +97,10 @@ def _send_request(webhook_id, url, key, data):
str(e)),
response_headers={},
duration=0)
return webhook_log
finally:
_remove_leftover_webhooklogs(webhook_id)
return webhook_log
request = requests.Request('POST', url, data=serialized_data, headers=headers)
prepared_request = request.prepare()