Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil McCallum zugnush

View GitHub Profile
View oracle exceptions with cx_oracle
try:
cur.execute('select * from blah')
except cx_Oracle.DatabaseError as e:
error, = e.args
print(error.code)
print(error.message)
print(error.context)
import pdb ; pdb.set_trace()