Fix flakes errors.

This commit is contained in:
Jelmer Vernooij 2017-07-29 13:06:40 +00:00
parent 59b345b648
commit 39debdb011
No known key found for this signature in database
GPG Key ID: 1DF7EADF3B648883
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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: