def run(self): logger.debug("Thread started.") while not self.__stopped: self.__wait() if not self.__stopped: try: self.doCall() except Exception as e: logger.critical("Unhandled exception", exc_info=e) logger.debug("Thread finished.")
def onUnhandledException(self, exception): logger.critical("Unhandled exception", exc_info=exception)