kuroko/test/testTryElseRaise.krk

13 lines
226 B
Python
Raw Normal View History

try:
try:
print("good")
except:
print("bad")
else:
print('else')
raise ValueError
finally:
print('finally')
except ValueError:
print("raised ValueError as expected")