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