Rollback on generic database exceptions.

This commit is contained in:
Dominik Pantůček 2025-07-17 16:23:26 +02:00
parent f8a265f1d2
commit 5d658a7406

View file

@ -59,6 +59,7 @@ class Database:
return self._execute(cur, query, attrs, level+1)
except Exception as ex:
logger.debug("_execute exception: %s", ex)
self.db_conn.rollback()
def commit(self):
"""passes commit to db"""