Skip to content

Instantly share code, notes, and snippets.

@Winand
Created September 14, 2016 06:06
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 Winand/e98e3f2f073826b7c08b58fb6d338b51 to your computer and use it in GitHub Desktop.
Save Winand/e98e3f2f073826b7c08b58fb6d338b51 to your computer and use it in GitHub Desktop.
print exception before you die
if QtCore.QT_VERSION >= 0x50501:
def excepthook(type_, value, traceback_):
traceback.print_exception(type_, value, traceback_)
QtCore.qFatal('')
sys.excepthook = excepthook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment