mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-09 23:42:18 -05:00
Fix flake8 (#4519)
This commit is contained in:
parent
457fbfaf22
commit
3f189c902e
12 changed files with 94 additions and 102 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue