feat: add exception_test.py
This commit is contained in:
9
exception_test.py
Normal file
9
exception_test.py
Normal 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")
|
||||
Reference in New Issue
Block a user