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("Das Programm wurde nicht beendet.")
Result:
Report an issue