It is really a smart idea to catch and re-raise KeyboardInterrupts, to be able to however destroy This system employing Ctrl-C. Logging is exterior the scope on the query, but a very good option is logging. Documentation for that sys and traceback modules. You should edit to incorporate more information, https://peakbookmarks.com/story20240654/weed-in-belfast-an-overview