Fix flakes errors.
This commit is contained in:
parent
59b345b648
commit
39debdb011
@ -220,8 +220,6 @@ def main():
|
|||||||
imprt.add_argument("--empty-id", dest="empty_id", action="store_true",
|
imprt.add_argument("--empty-id", dest="empty_id", action="store_true",
|
||||||
help="workaround for weird Disqus XML exports, #135")
|
help="workaround for weird Disqus XML exports, #135")
|
||||||
|
|
||||||
serve = subparser.add_parser("run", help="run server")
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
conf = config.load(join(dist.location, dist.project_name, "defaults.ini"), args.conf)
|
conf = config.load(join(dist.location, dist.project_name, "defaults.ini"), args.conf)
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ class curl(object):
|
|||||||
self.con = http(host, port, timeout=self.timeout)
|
self.con = http(host, port, timeout=self.timeout)
|
||||||
try:
|
try:
|
||||||
self.con.request(self.method, self.path, headers=self.headers)
|
self.con.request(self.method, self.path, headers=self.headers)
|
||||||
except (httplib.HTTPException, socket.error) as e:
|
except (httplib.HTTPException, socket.error):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user