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
No related branches found
No related tags found
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(): ...@@ -25,6 +25,6 @@ def session_scope():
try: try:
yield session yield session
session.commit() session.commit()
except: except: # noqa: E722
session.rollback() session.rollback()
raise raise
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment