Jul-28-2018, 12:54 PM
This is the expected (normal) behavior when you send a CTRL+C to the running python script.
If you want to handle this Exception (KeyboardInterrupt) you can do something like this:
If you want to handle this Exception (KeyboardInterrupt) you can do something like this:
try: input('Press CTRL+C!') except KeyboardInterrupt: print('\nCTRL+C Received!') print('Bye')