RosettaCodeData/Task/Exceptions/Python/exceptions-7.py
2023-07-01 13:44:08 -04:00

10 lines
127 B
Python

try:
foo()
except SillyError as se:
print(se.args)
bar()
else:
# no exception occurred
quux()
finally:
baz()