Пример #1
0
 def finish_current_handler(self):
     if self.current_handler_id is not None:
         err_msg = "Got error finishing handler for queue %s" % (self.event_queue.id,)
         try:
             finish_handler(self.current_handler_id, self.event_queue.id,
                            self.event_queue.contents(), self.apply_markdown)
         except Exception:
             logging.exception(err_msg)
         finally:
             self.disconnect_handler()
             return True
     return False
 def finish_current_handler(self, need_timeout=False):
     if self.current_handler_id is not None:
         err_msg = "Got error finishing handler for queue %s" % (self.event_queue.id,)
         try:
             finish_handler(self.current_handler_id, self.event_queue.id,
                            self.event_queue.contents(), self.apply_markdown)
         except Exception:
             logging.exception(err_msg)
         finally:
             self.disconnect_handler(need_timeout=need_timeout)
             return True
     return False
Пример #3
0
 def finish_current_handler(self, need_timeout=False):
     # type: (bool) -> bool
     if self.current_handler_id is not None:
         err_msg = "Got error finishing handler for queue %s" % (self.event_queue.id,)
         try:
             finish_handler(self.current_handler_id, self.event_queue.id,
                            self.event_queue.contents(), self.apply_markdown)
         except Exception:
             logging.exception(err_msg)
         finally:
             self.disconnect_handler(need_timeout=need_timeout)
             return True
     return False
Пример #4
0
 def finish_current_handler(self):
     # type: (bool) -> bool
     if self.current_handler_id is not None:
         err_msg = "Got error finishing handler for queue %s" % (
             self.event_queue.id, )
         try:
             finish_handler(self.current_handler_id, self.event_queue.id,
                            self.event_queue.contents(),
                            self.apply_markdown)
         except Exception:
             logging.exception(err_msg)
         finally:
             self.disconnect_handler()
             return True
     return False