Fix try/except syntax

This commit is contained in:
Martin Herkt 2017-03-27 22:18:38 +02:00
parent 462555d532
commit 2e509a1faf
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F

View File

@ -203,7 +203,7 @@ def store_url(url, addr):
try:
r.raise_for_status()
except (requests.exceptions.HTTPError, e):
except requests.exceptions.HTTPError as e:
return str(e) + "\n"
if "content-length" in r.headers: