zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Catch KeyboardInterrupt

December 2, 2019 by Igor Drobot 2 Comments

CONTROL + C is the magic key combination to stop any execution at the command line. The execution stops immediately and in worst case you see something like ^C as the output of your running command.

If you stop the execution of any Python-Program, the output will be a bit unordinary and in the most cases, annoying. Because your Terminal gets flooded and you will get an Exception:

[Read more…]

Filed Under: Programming, Python Tagged With: KeyboardInterrupt, Python, Python Exception