summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-02-26 11:27:19 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-02-26 11:27:19 +0000
commit6946c20111cb7c460deb340b61236dce9f4fd878 (patch)
treee4e437de3549ff7d1bc748d865f4c768fb481367
parentAddress rich comments (diff)
downloadsynapse-6946c20111cb7c460deb340b61236dce9f4fd878.tar.xz
Result may be None
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index a9725ade37..7c21f142a0 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -329,7 +329,7 @@ class RoomListHandler(BaseHandler):
         result = yield self.generate_room_entry(room_id, num_joined_users)
 
         if from_federation and not self.config.allow_non_federated_in_public_rooms:
-            if result["m.federate"] is False:
+            if not result or result["m.federate"] is False:
                 # This is a non-federating room and the config has chosen not
                 # to show these rooms to other servers
                 return