From 4d55b16faa332f6cc84860f39a4773808f6abe8c Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 1 May 2018 14:32:30 +0100 Subject: [PATCH] Fix python synatx --- synapse/handlers/profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index 473c52558..7c5591056 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -81,7 +81,8 @@ class ProfileHandler(BaseHandler): """ host_batches = yield self.store.get_replication_hosts() latest_batch = yield self.store.get_latest_profile_replication_batch_number() - if latest_batch is None latest_batch = -1 + if latest_batch is None: + latest_batch = -1 for repl_host in self.hs.config.replicate_user_profiles_to: if repl_host not in host_batches: host_batches[repl_host] = -1