summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-04-04 17:36:31 +0100
committerMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-04-04 17:36:31 +0100
commit76b725217895550a19edec69a4176e6cf0e09b4c (patch)
tree16fbd4865c62138096085338a8550737d1ca9c67
parentPrevent exception when hs or shadow_hs missing (diff)
downloadsynapse-michaelk/be_liberal_with_info_api.tar.xz
-rw-r--r--synapse/util/threepids.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py
index 3e2ecd488e..4cc7d27ce5 100644
--- a/synapse/util/threepids.py
+++ b/synapse/util/threepids.py
@@ -49,8 +49,8 @@ def check_3pid_allowed(hs, medium, address):
 
         # Check if this user is intended to register for this homeserver
         if (
-            data.get('hs',None) != hs.config.server_name
-            and data.get('shadow_hs',None) != hs.config.server_name
+            data.get('hs') != hs.config.server_name
+            and data.get('shadow_hs') != hs.config.server_name
         ):
             defer.returnValue(False)