changeset 11568 | a9940c6cd693 |
parent 11566 | 59548227ecc9 |
child 11575 | 97110b4af42f |
--- a/pyramid_cubicweb/core.py Wed Apr 29 13:09:06 2015 +0200 +++ b/pyramid_cubicweb/core.py Fri May 08 11:38:07 2015 +0200 @@ -248,6 +248,8 @@ httpexceptions.HTTPSuccessful, httpexceptions.HTTPRedirection))): cnx.rollback() + elif cnx._cnx.commit_state == 'uncommitable': + cnx.rollback() else: cnx.commit() cnx.__exit__(None, None, None)