zeldor.biz

Linux, programming and more

Copyright © 2025
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

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok