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 clas
I'm having difficulty catching dbi.program-error which occurs this way:
import dbi, odbc
[...]
self.__cur.execute(sql)
>>> dbi.program-error: [Sybase][ODBC Driver][Adaptive Server Anywhere]Table
>>> 'depfile' not found in EXEC
but
try:
self.__cur.execute(sql)
except dbi.program-error,e: