summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-04-04 15:56:13 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-04-04 15:56:13 +0100
commit3dbad0603f269e1324a5de10fc7f10c67ff46047 (patch)
tree4cf005acd333bce539f23c01c1733fd731db4a07
parentChange federation whitelist stuff back (diff)
downloadsynapse-3dbad0603f269e1324a5de10fc7f10c67ff46047.tar.xz
lint
-rw-r--r--synapse/crypto/context_factory.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/crypto/context_factory.py b/synapse/crypto/context_factory.py
index 6fda5e677d..6ebbd3b73c 100644
--- a/synapse/crypto/context_factory.py
+++ b/synapse/crypto/context_factory.py
@@ -145,7 +145,10 @@ class ClientTLSOptionsFactory(object):
         should_verify = self._config.federation_verify_certificates
 
         # Check if we've disabled certificate verification for this host
-        if should_verify and host in self._config.federation_certificate_verification_whitelist:
+        if (
+            should_verify and
+            host in self._config.federation_certificate_verification_whitelist
+        ):
             should_verify = False
 
         if should_verify: