Flake8: Fix E722
This commit is contained in:
parent
2b1d3ce3d2
commit
dca25b9e90
@ -120,7 +120,7 @@ class HTTPServer(wsgiref.simple_server.WSGIServer):
|
|||||||
try:
|
try:
|
||||||
self.server_bind()
|
self.server_bind()
|
||||||
self.server_activate()
|
self.server_activate()
|
||||||
except:
|
except BaseException:
|
||||||
self.server_close()
|
self.server_close()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
@ -779,7 +779,7 @@ class Collection(BaseCollection):
|
|||||||
(path, e)) from e
|
(path, e)) from e
|
||||||
tmp.close()
|
tmp.close()
|
||||||
os.replace(tmp.name, path)
|
os.replace(tmp.name, path)
|
||||||
except:
|
except BaseException:
|
||||||
tmp.close()
|
tmp.close()
|
||||||
os.remove(tmp.name)
|
os.remove(tmp.name)
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user