Ask coding questions

← Back to all posts
MGoodart (1)

I have a python 3 program with a KeyboardInterrupt to stop a while True. In the IDLE it works fine, but in the ctrl + c just stops the program and doesn't run the code that Handles the Ctrl-C exception to keep its error message from displaying.

Is there anyway to do this in This is an assignment for my students.

John_WardWard (364)

@MGoodart I don't know if it shall do anything, but try using if you haven't already.