circuitpython/tests/basics/try2.py

13 lines
164 B
Python

# nested try's
try:
print("try 1")
try:
print("try 2")
foo()
except:
print("except 2")
bar()
except:
print("except 1")