Skip to content

Instantly share code, notes, and snippets.

@amercader
Created May 12, 2016 12:06
Show Gist options
  • Save amercader/8e8f0740f1655c90ce8c7d0c20513353 to your computer and use it in GitHub Desktop.
Save amercader/8e8f0740f1655c90ce8c7d0c20513353 to your computer and use it in GitHub Desktop.
Reference exceptions on ipdb
# Thanks to http://stackoverflow.com/questions/20797923/get-reference-to-the-current-exception
import sys
import traceback
!exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment