micropython/tests/basics/try4.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
330 B
Python
Raw Normal View History

# 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")