It can be a smart idea to capture and re-elevate KeyboardInterrupts, to be able to however kill the program utilizing Ctrl-C. Logging is outside the house the scope in the query, but a great solution is logging. Documentation for the sys and traceback modules. It ought to appear as no https://helpmehigh.com/