When stopping the execution of the below code in VS Code, the finally
block is not executing. How can I make this work?
try:
while True:
print('x')
finally:
print('finally')
When stopping the execution of the below code in VS Code, the finally
block is not executing. How can I make this work?
try:
while True:
print('x')
finally:
print('finally')