Catch a wider range of exceptions when adding events to event queues

We have observed additional exceptions being thrown from zulip_finish and we
need to make sure that the handler is disconnected from the queue, or else the
event queue will keep throwing exceptions due to the handler being closed.

(imported from commit 59273aa14495216430b9eb1525b2cce230d8913d)
This commit is contained in:
Zev Benjamin 2013-12-10 17:40:30 -05:00
parent c7abaff9e9
commit b566c0f201
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class ClientDescriptor(object):
queue_id=self.event_queue.id),
self.current_handler._request,
apply_markdown=self.apply_markdown)
except socket.error:
except Exception:
logging.exception("Got error adding event to queue %s" % (self.event_queue.id))
self.disconnect_handler()