Disconnect handlers from event queues via a finally block

(imported from commit ac63a962f978b05a5d8d6bf81861b908b5fd54b3)
This commit is contained in:
Zev Benjamin
2013-12-10 17:44:35 -05:00
parent b566c0f201
commit 874d4282c0

View File

@@ -101,6 +101,7 @@ class ClientDescriptor(object):
apply_markdown=self.apply_markdown) apply_markdown=self.apply_markdown)
except Exception: except Exception:
logging.exception("Got error adding event to queue %s" % (self.event_queue.id)) logging.exception("Got error adding event to queue %s" % (self.event_queue.id))
finally:
self.disconnect_handler() self.disconnect_handler()
def accepts_event_type(self, type): def accepts_event_type(self, type):