Skip to content
Advertisement

Tag: try-catch-finally

Pycharm’s “stop” does not run finally code

I am running a python project in pycharm. In the code we have a main “try-catch-finally” block e.g. If I run the program in the terminal it will reach the finally block when I press our quit button or “ctrl-c” and perform the post processing required. However, after pressing “stop” when using the run tool in PyCharm it just quits

Advertisement