It's a smart idea to catch and re-raise KeyboardInterrupts, so as to nonetheless eliminate the program making use of Ctrl-C. Logging is outside the house the scope with the question, but a very good choice is logging. Documentation for that sys and traceback modules. Be Discreet: Public usage of cannabis https://helpmehigh.com/