micropython/tests/basics/try3.py

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

18 lines
226 B
Python
Raw Normal View History

# nested exceptions
def f():
try:
foo()
except:
print("except 1")
try:
baz()
except:
print("except 2")
bar()
try:
f()
except:
print("f except")