You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
330 B
21 lines
330 B
# triple nested exceptions
|
|
|
|
def f():
|
|
try:
|
|
foo()
|
|
except:
|
|
print("except 1")
|
|
try:
|
|
bar()
|
|
except:
|
|
print("except 2")
|
|
try:
|
|
baz()
|
|
except:
|
|
print("except 3")
|
|
bak()
|
|
|
|
try:
|
|
f()
|
|
except:
|
|
print("f except")
|
|
|