summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-18 11:17:37 +0100
committerErik Johnston <erik@matrix.org>2015-08-18 11:17:37 +0100
commite55291ce5ec0c65c54363ef9366c2357df2ee44f (patch)
treeb7a74135eedd73eee300736717a494a71bf15a2f /synapse/handlers/presence.py
parentDon't assume @cachedList function returns keys for everything (diff)
downloadsynapse-e55291ce5ec0c65c54363ef9366c2357df2ee44f.tar.xz
None check
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 2b103b48bb..748432959e 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -290,6 +290,8 @@ class PresenceHandler(BaseHandler):
             )
 
             for local_part, state in states.items():
+                if stat is None:
+                    continue
                 res = {"presence": state["state"]}
                 if "status_msg" in state and state["status_msg"]:
                     res["status_msg"] = state["status_msg"]