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 2 (modified by bjourne@…, 13 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

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

just seems to be too kludgy ...

Question: Maybe this is a bug in SQLObject?