EDIT: after reading the comments and the answers I realize that what I want to do does not make much sense. What I had in mind was that I h
Are you after:
import traceback import sys try: raise ValueError("something bad happened, but we got that covered") except Exception: print("--------------") print(traceback.format_exception(sys.exc_info())) print("--------------") print("still there")