mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-20 12:35:34 -04:00
12 lines
127 B
Python
12 lines
127 B
Python
# basic exceptions
|
|
x = 1
|
|
try:
|
|
x.a()
|
|
except:
|
|
print(x)
|
|
|
|
try:
|
|
raise IndexError
|
|
except IndexError:
|
|
print("caught")
|