summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-05-13 08:24:50 -0400
committerGitHub <noreply@github.com>2020-05-13 08:24:50 -0400
commitedd3b0747cc651d224fc1bf81ae7fbd6a25a2ea5 (patch)
treeba9843033806aeb0849c8e2b99ed9edb5fd71213 /synapse/config/server.py
parentDon't UPGRADE database rows (diff)
downloadsynapse-edd3b0747cc651d224fc1bf81ae7fbd6a25a2ea5.tar.xz
Fix new flake8 errors (#7489)
This is a cherry-pick of 1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (#7470)
to the release-v1.13.0 branch.
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 6d88231843..ed28da3deb 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -522,7 +522,7 @@ class ServerConfig(Config):
         )
 
     def has_tls_listener(self) -> bool:
-        return any(l["tls"] for l in self.listeners)
+        return any(listener["tls"] for listener in self.listeners)
 
     def generate_config_section(
         self, server_name, data_dir_path, open_private_ports, listeners, **kwargs