summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-07-20 16:47:35 +0100
committerErik Johnston <erik@matrix.org>2017-07-20 16:47:35 +0100
commit139fe30f47aabd3ca8cce0f8d8c961348188b90b (patch)
treeeec3f00d54c7482261ee5d416251542e116c1c20 /synapse/handlers/sync.py
parentFix bug in generating current token (diff)
downloadsynapse-139fe30f47aabd3ca8cce0f8d8c961348188b90b.tar.xz
Remember to cast to bool
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index c01fcd3d59..600d0589fd 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -116,7 +116,7 @@ class GroupsSyncResult(collections.namedtuple("GroupsSyncResult", [
     __slots__ = []
 
     def __nonzero__(self):
-        return self.join or self.invite or self.leave
+        return bool(self.join or self.invite or self.leave)
 
 
 class SyncResult(collections.namedtuple("SyncResult", [