13 lines
226 B
Python
13 lines
226 B
Python
|
try:
|
||
|
try:
|
||
|
print("good")
|
||
|
except:
|
||
|
print("bad")
|
||
|
else:
|
||
|
print('else')
|
||
|
raise ValueError
|
||
|
finally:
|
||
|
print('finally')
|
||
|
except ValueError:
|
||
|
print("raised ValueError as expected")
|