It is a good idea to catch and re-raise KeyboardInterrupts, so as to even now eliminate This system utilizing Ctrl-C. Logging is outside the scope on the concern, but a very good choice is logging. Documentation for your sys and traceback modules. Now, let us go the 2nd 'e' (found https://helpmehigh.com/