RosettaCodeData/Task/Flow-control-structures/Python/flow-control-structures-7.py
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07: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