diff --git a/exception_test.py b/exception_test.py new file mode 100644 index 0000000..5d728ef --- /dev/null +++ b/exception_test.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +if __name__ == "__main__": + try: + raise ValueError("error") + except ValueError as e: + print('exception', e) + finally: + print("finally")