~amirouche/python-okvs

a7e4cc5984af6881fdabc41b01a486b6c97f2516 — Amirouche 10 months ago 9212bb8
fix(okdb): critical: replace try/except/finally with...

... try/except/else because commit should not be called when
the transaction failed.
1 files changed, 1 insertions(+), 1 deletions(-)

M okdb/__init__.py
M okdb/__init__.py => okdb/__init__.py +1 -1
@@ 28,7 28,7 @@ def txn(cnx, func, *args, **kwargs):
    except Exception:
        cnx.rollback()
        raise
    finally:
    else:
        cnx.commit()