Source Code:
(back to article)
import traceback try: # code that may raise an exception 1 / 0 except Exception as e: # print the full traceback print(traceback.format_exc()) # continue with the rest of the program print("The program did not exit.")
Result:
Report an issue