catch dbi.program-error ?

Brian Herbert Withun bhwithun at gmail.com
Thu Nov 17 16:05:05 EST 2005


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...




More information about the Python-list mailing list