diff options
author | Erik Johnston <erik@matrix.org> | 2015-08-18 11:17:37 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-08-18 11:17:37 +0100 |
commit | e55291ce5ec0c65c54363ef9366c2357df2ee44f (patch) | |
tree | b7a74135eedd73eee300736717a494a71bf15a2f | |
parent | Don't assume @cachedList function returns keys for everything (diff) | |
download | synapse-e55291ce5ec0c65c54363ef9366c2357df2ee44f.tar.xz |
None check
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/presence.py | 2 |
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"] |