Community Questions
Join the discussion, find answers, and help others.
39
votes
1
answers
1524 views
How to handle keyboard interrupts in Python
My script should clean up when user presses Ctrl+C. How do I handle this?