Changeset - d5707598fd64
stable
0
1
0
db: fix unknown exception type in commit error handling
efce61aac33d was a blind fix. It failed because `from sqlalchemy import *`
doesn't import exc and the new except clause would thus fail. It also failed
because the session has to be rolled back after a commit failure.
Now, rework it to fix these issues.
Note that we are able to detect whether the commit failed for valid reasons ...
but we can't use that information to much ...
efce61aac33d was a blind fix. It failed because `from sqlalchemy import *`
doesn't import exc and the new except clause would thus fail. It also failed
because the session has to be rolled back after a commit failure.
Now, rework it to fix these issues.
Note that we are able to detect whether the commit failed for valid reasons ...
but we can't use that information to much ...
1 file changed with 10 insertions and 6 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)