It's a good idea to catch and re-raise KeyboardInterrupts, so that you can nonetheless destroy the program using Ctrl-C. Logging is outside the house the scope of the question, but a great alternative is logging. Documentation to the sys and traceback modules. This question is inside of a collective: a https://pageoftoday.com/story5625450/find-weed-in-southampton-fundamentals-explained