mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Paranoia try..except
This commit is contained in:
parent
30b53812de
commit
6844bb8a6f
1 changed files with 4 additions and 1 deletions
|
@ -99,7 +99,10 @@ class _NotifierUserStream(object):
|
||||||
listeners = self.listeners
|
listeners = self.listeners
|
||||||
self.listeners = set()
|
self.listeners = set()
|
||||||
for listener in listeners:
|
for listener in listeners:
|
||||||
listener.notify(self.current_token)
|
try:
|
||||||
|
listener.notify(self.current_token)
|
||||||
|
except:
|
||||||
|
logger.exception("Failed to notify listener")
|
||||||
|
|
||||||
def remove(self, notifier):
|
def remove(self, notifier):
|
||||||
""" Remove this listener from all the indexes in the Notifier
|
""" Remove this listener from all the indexes in the Notifier
|
||||||
|
|
Loading…
Reference in a new issue