Flake8: Fix E722

This commit is contained in:
Unrud 2017-12-06 22:13:44 +01:00
parent 2b1d3ce3d2
commit dca25b9e90
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class HTTPServer(wsgiref.simple_server.WSGIServer):
try:
self.server_bind()
self.server_activate()
except:
except BaseException:
self.server_close()
raise

View File

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