From: Jorge G. <go...@ie...> - 2005-11-21 18:48:50
|
Ian Bicking <ia...@co...> writes: > Jorge Godoy wrote: > > try: > > (ops) > > except ProgrammingError, error: > > (rollback) > > and several combinations with "sqlobject", "sqlobject.connection", etc. to > > fully qualify the exception name but I always get an error message saying that > > there's no excpetion named ProgrammingError there. Is there any exception > > thrown from SQLObject that I can catch to achieve that? > > (I also want to show the user some message so that he knows what has gone > > wrong.) > > The best you can do now is: > > try: > ... > except MyClass._connection.module.ProgrammingError, error: > ... Perfect! It worked like a charm! Thanks a lot. -- Jorge Godoy <go...@ie...> |