From 2e509a1faf3f005da1291b3a31c79ed568f9370f Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Mon, 27 Mar 2017 22:18:38 +0200 Subject: [PATCH] Fix try/except syntax --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: