wiki:SqlObjectGotchas
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Version 1 (modified by ghaering, 9 years ago) (diff)

--

SqlObject? does not catch and re-throw the exceptions of the underlying DB-API module. Instead you will get the exceptions of the DB-API module directly in your face, like an IntegrityError if you hit a constraint violation.

I haven't seen a sensible way to intercept those exceptions, yet, something like

try:
   ...
except hub.hub.getConnection().module.IntegrityError, e:
   ...

just seems to be too kludgy ...