Commit 90121196 authored by jkvis's avatar jkvis

Debugging webhook

parent 45b39c53
......@@ -460,11 +460,10 @@ def upload(user, transfer_id):
success = True
try:
result = requests.post(user.action,
json={'transfer_id': transfer.tid},
cert=CERT,
verify=False)
if result.status_code < 200 or result.status_code > 299:
logging.error(user.action + transfer.tid + ' failed')
logging.error(user.action + ' for ' transfer.tid + ' failed: ' + result)
success = False
except requests.exceptions.RequestException as excp:
logging.error('Could not notify ' + user.action +
......
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