aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2017-03-27 22:18:38 +0200
committerMartin Herkt <lachs0r@srsfckn.biz>2017-03-27 22:18:38 +0200
commit2e509a1faf3f005da1291b3a31c79ed568f9370f (patch)
tree7c3d8b15b0f46e30f36a1c4485a304cdf82100da
parentAdd support for upload IP blacklists (diff)
downloadhex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.tar.gz
hex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.tar.bz2
hex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.zip
Fix try/except syntax
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fhost.py b/fhost.py
index 1842637..5e35104 100755
--- a/fhost.py
+++ b/fhost.py
@@ -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:
bgstack15