summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-05-12 11:20:48 +0100
committerGitHub <noreply@github.com>2020-05-12 11:20:48 +0100
commit1a1da60ad2c9172fe487cd38a164b39df60f4cb5 (patch)
tree2b2f1a2f431535f2f9088f06486c9070c3805f0c /synapse/config/server.py
parentConvert federation handler to async/await. (#7459) (diff)
downloadsynapse-1a1da60ad2c9172fe487cd38a164b39df60f4cb5.tar.xz
Fix new flake8 errors (#7470)
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