try: some_undefined_method() except Exception as e: print("Repr Error : " + repr(e)) print("Error : " + str(e)) else: print("Program Executed successfully") finally: print("Finally always executes")
0 Comments