It really is a good idea to catch and re-raise KeyboardInterrupts, to be able to even now eliminate This system applying Ctrl-C. Logging is outside the house the scope from the question, but a great alternative is logging. Documentation for that sys and traceback modules. Beyond particular person individual treatment, https://helpmehigh.com/