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

11 lines
124 B
Python

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