From 39debdb0110fd87c15a3acc59b21035cbc791497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Sat, 29 Jul 2017 13:06:40 +0000 Subject: [PATCH] Fix flakes errors. --- isso/__init__.py | 2 -- isso/utils/http.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/isso/__init__.py b/isso/__init__.py index 7795c4f..0a62290 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -220,8 +220,6 @@ def main(): imprt.add_argument("--empty-id", dest="empty_id", action="store_true", help="workaround for weird Disqus XML exports, #135") - serve = subparser.add_parser("run", help="run server") - args = parser.parse_args() conf = config.load(join(dist.location, dist.project_name, "defaults.ini"), args.conf) diff --git a/isso/utils/http.py b/isso/utils/http.py index 48b968b..4bbf443 100644 --- a/isso/utils/http.py +++ b/isso/utils/http.py @@ -44,7 +44,7 @@ class curl(object): self.con = http(host, port, timeout=self.timeout) try: self.con.request(self.method, self.path, headers=self.headers) - except (httplib.HTTPException, socket.error) as e: + except (httplib.HTTPException, socket.error): return None try: