Handle exceptions in get_hosts_for_room when sending events over federation
This commit is contained in:
parent
135fc5b9cd
commit
145d14656b
|
@ -184,6 +184,7 @@ class TransactionQueue(object):
|
||||||
if not is_mine and send_on_behalf_of is None:
|
if not is_mine and send_on_behalf_of is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
# Get the state from before the event.
|
# Get the state from before the event.
|
||||||
# We need to make sure that this is the state from before
|
# We need to make sure that this is the state from before
|
||||||
# the event and not from after it.
|
# the event and not from after it.
|
||||||
|
@ -195,6 +196,10 @@ class TransactionQueue(object):
|
||||||
prev_id for prev_id, _ in event.prev_events
|
prev_id for prev_id, _ in event.prev_events
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
except Exception:
|
||||||
|
logger.exception("Failed to calculate hosts in room")
|
||||||
|
continue
|
||||||
|
|
||||||
destinations = set(destinations)
|
destinations = set(destinations)
|
||||||
|
|
||||||
if send_on_behalf_of is not None:
|
if send_on_behalf_of is not None:
|
||||||
|
|
Loading…
Reference in New Issue