diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-01-30 10:53:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-30 10:53:17 +0000 |
commit | 3f189c902ea1146a497512049aa38fe9a0a91169 (patch) | |
tree | a5681bf0f6c239cb453e51a5442bc363a52bd60c /synapse/handlers/directory.py | |
parent | Merge pull request #4486 from xperimental/workaround-4216 (diff) | |
download | synapse-3f189c902ea1146a497512049aa38fe9a0a91169.tar.xz |
Fix flake8 (#4519)
Diffstat (limited to 'synapse/handlers/directory.py')
-rw-r--r-- | synapse/handlers/directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/directory.py b/synapse/handlers/directory.py index 0699731c13..6bb254f899 100644 --- a/synapse/handlers/directory.py +++ b/synapse/handlers/directory.py @@ -57,8 +57,8 @@ class DirectoryHandler(BaseHandler): # general association creation for both human users and app services for wchar in string.whitespace: - if wchar in room_alias.localpart: - raise SynapseError(400, "Invalid characters in room alias") + if wchar in room_alias.localpart: + raise SynapseError(400, "Invalid characters in room alias") if not self.hs.is_mine(room_alias): raise SynapseError(400, "Room alias must be local") |