try: self.__cur.execute(sql) except dbi.program-error,e: print " caught " raise
should be changed to: try: self.__cur.execute(sql) except dbi.progError,e: print " caught " raise In my infinite googling I found some source code that showed the actual name of this exception class. I can't explain why it reports the exception as "dbi.program-error" when left unhandled... -- http://mail.python.org/mailman/listinfo/python-list