summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-05-01 14:32:30 +0100
committerDavid Baker <dave@matrix.org>2018-05-01 14:32:30 +0100
commit4d55b16faa332f6cc84860f39a4773808f6abe8c (patch)
treeac01f1c0942d2a53200cf1b28282f8ca10311bad
parentFix profile repl (diff)
downloadsynapse-4d55b16faa332f6cc84860f39a4773808f6abe8c.tar.xz
Fix python synatx
-rw-r--r--synapse/handlers/profile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py

index 473c525581..7c5591056d 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