summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-03 15:03:15 +0100
committerErik Johnston <erik@matrix.org>2016-08-03 15:03:15 +0100
commit520ee9bd2c91a75eb1dc7ed923016967856c6bdf (patch)
tree7c2a19b80b0f5aa57e3c3faaf94be2e9ba509059 /synapse
parentComment (diff)
downloadsynapse-520ee9bd2c91a75eb1dc7ed923016967856c6bdf.tar.xz
Fix syntax error
Diffstat (limited to '')
-rw-r--r--synapse/federation/federation_client.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 0491f1c3fe..6c626cf12c 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -325,10 +325,17 @@ class FederationClient(FederationBase):
             state_event_ids = result["pdus"]
             auth_event_ids = result.get("auth_chain", [])
 
-            event_map, _failed_to_fetch = yield self.get_events(
+            fetched_events, failed_to_fetch = yield self.get_events(
                 [destination], room_id, set(state_event_ids + auth_event_ids)
             )
 
+            if failed_to_fetch:
+                logger.warn("Failed to get %r", failed_to_fetch)
+
+            event_map = {
+                ev.event_id: ev for ev in fetched_events
+            }
+
             pdus = [event_map[e_id] for e_id in state_event_ids]
             auth_chain = [event_map[e_id] for e_id in auth_event_ids]