micropython/tests/basics/try1.py

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

12 lines
127 B
Python
Raw Normal View History

# basic exceptions
x = 1
try:
x.a()
except:
print(x)
try:
raise IndexError
except IndexError:
print("caught")