RosettaCodeData/Task/Flow-control-structures/Python/flow-control-structures-7.py
2023-07-01 13:44:08 -04:00

8 lines
208 B
Python

try:
try:
pass
except (MyException1, MyOtherException):
pass
except SomeOtherException:
finally:
do_some_cleanup() # run in any case, whether any exceptions were thrown or not