diff options
Diffstat (limited to 'python/db.py')
| -rw-r--r-- | python/db.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/db.py b/python/db.py index 3abe1800..5c85c8cc 100644 --- a/python/db.py +++ b/python/db.py @@ -10,10 +10,10 @@ def with_connection(f): try: rv = f(conn, *args, **kwargs) except Exception as e: + print(e) conn.rollback() - raise - - return rv + else: + return rv return with_connection_ |
