Commit a3bca59c authored by jkvis's avatar jkvis

Wrong use of the requests response

parent d8811098
......@@ -463,7 +463,7 @@ def upload(user, transfer_id):
cert=CERT,
verify=False)
if result.status_code < 200 or result.status_code > 299:
logging.error(user.action + ' for ' + transfer.tid + ' failed: ' + result)
logging.error(user.action + ' for ' + transfer.tid + ' failed: ' + result.text)
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