This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rollback the session after UNIQUE constraint failed exception
Here is the error message: InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (IntegrityError) UNIQUE constraint failed: version.id u'INSERT INTO version (id) VALUES (?)' (1,) Signed-off-by: Harrison Feng <[email protected]>
- Loading branch information