SyntaxFix
Write A Post
Hire A Developer
Questions
traceback.format_exc() or sys.exc_info() will yield more info if that's what you want.
traceback.format_exc()
sys.exc_info()
import traceback import sys try: do_stuff() except Exception: print(traceback.format_exc()) # or print(sys.exc_info()[2])