Skip to content
Snippets Groups Projects
Commit 1c6f0b67 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

allow bare except for context manager

parent e196a3e3
Branches
Tags
1 merge request!44Feature/comp 208 google o auth poc
This commit is part of merge request !44. Comments created here will be created in the context of that merge request.
......@@ -25,6 +25,6 @@ def session_scope():
try:
yield session
session.commit()
except:
except: # noqa: E722
session.rollback()
raise
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment