##// END OF EJS Templates
Put cleanup in finally block...
Thomas Kluyver -
Show More
@@ -429,6 +429,7 b' class TerminalInteractiveShell(InteractiveShell):'
429 break
429 break
430 except KeyboardInterrupt as e:
430 except KeyboardInterrupt as e:
431 print("\n%s escaped interact()\n" % type(e).__name__)
431 print("\n%s escaped interact()\n" % type(e).__name__)
432 finally:
432 # An interrupt during the eventloop will mess up the
433 # An interrupt during the eventloop will mess up the
433 # internal state of the prompt_toolkit library.
434 # internal state of the prompt_toolkit library.
434 # Stopping the eventloop fixes this, see
435 # Stopping the eventloop fixes this, see
General Comments 0
You need to be logged in to leave comments. Login now