This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Commit 2195493
committed
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 <harrison_feng@163.com>1 parent 1009c49 commit 2195493
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments