diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2017-03-27 22:18:38 +0200 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2017-03-27 22:18:38 +0200 |
commit | 2e509a1faf3f005da1291b3a31c79ed568f9370f (patch) | |
tree | 7c3d8b15b0f46e30f36a1c4485a304cdf82100da | |
parent | Add support for upload IP blacklists (diff) | |
download | hex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.tar.gz hex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.tar.bz2 hex-zero-2e509a1faf3f005da1291b3a31c79ed568f9370f.zip |
Fix try/except syntax
-rwxr-xr-x | fhost.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |