Skip to content
Snippets Groups Projects
Commit 76e36705 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

db: remove bare except:

parent afcbe940
No related branches found
Tags v0.0.96
Loading
......@@ -126,7 +126,7 @@ class BaseDb:
try:
yield cur
self.conn.commit()
except:
except Exception:
if not self.conn.closed:
self.conn.rollback()
raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment