diff options
author | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-04-04 17:36:31 +0100 |
---|---|---|
committer | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-04-04 17:36:31 +0100 |
commit | 76b725217895550a19edec69a4176e6cf0e09b4c (patch) | |
tree | 16fbd4865c62138096085338a8550737d1ca9c67 | |
parent | Prevent exception when hs or shadow_hs missing (diff) | |
download | synapse-github/michaelk/be_liberal_with_info_api.tar.xz |
Remove commas and None, to please pep8 github/michaelk/be_liberal_with_info_api michaelk/be_liberal_with_info_api
-rw-r--r-- | synapse/util/threepids.py | 4 |
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) |