0.13dev: Merged [10823] from 0.12-stable, and catch `IntegrityError` instead of (the too-generic) `Exception`.
0.13dev: Merged [10823] from 0.12-stable, and catch `IntegrityError` instead of (the too-generic) `Exception`.

pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac