1
0
Fork 0
forked from mia/0x0

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: try:
r.raise_for_status() r.raise_for_status()
except (requests.exceptions.HTTPError, e): except requests.exceptions.HTTPError as e:
return str(e) + "\n" return str(e) + "\n"
if "content-length" in r.headers: if "content-length" in r.headers: