Skip to content

Instantly share code, notes, and snippets.

@zugnush
Created April 14, 2014 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zugnush/10677697 to your computer and use it in GitHub Desktop.
Save zugnush/10677697 to your computer and use it in GitHub Desktop.
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment