RosettaCodeData/Task/Exceptions/Python/exceptions-7.py

11 lines
127 B
Python

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