From 78325b04cbdd555013a12fa38f743fcf1276bc5e Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Wed, 3 Sep 2025 22:57:15 +0800 Subject: [PATCH] feat: add exception_test.py --- exception_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 exception_test.py 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")