sys.__excepthook__(exc_type, exc_value, exc_tb)
sys.excepthook = custom_excepthook
raise RuntimeError('I want to report exception here...')
Is it possible to capture any traceback generated by a Python application?