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