kuroko/test/testTryElseRaise.krk

13 lines
226 B
Python
Raw Permalink 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")