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