mirror of
https://github.com/micropython/micropython.git
synced 2024-07-26 18:26:56 +01:00
22 lines
330 B
Python
22 lines
330 B
Python
|
# 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")
|