feat: add exception_test.py

This commit is contained in:
2025-09-03 22:57:15 +08:00
parent afe5995412
commit 78325b04cb

9
exception_test.py Normal file
View File

@@ -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")