summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-01-30 10:53:17 +0000
committerGitHub <noreply@github.com>2019-01-30 10:53:17 +0000
commit3f189c902ea1146a497512049aa38fe9a0a91169 (patch)
treea5681bf0f6c239cb453e51a5442bc363a52bd60c /synapse/handlers
parentMerge pull request #4486 from xperimental/workaround-4216 (diff)
downloadsynapse-3f189c902ea1146a497512049aa38fe9a0a91169.tar.xz
Fix flake8 (#4519)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/directory.py4
-rw-r--r--synapse/handlers/federation.py2
2 files changed, 3 insertions, 3 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")
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index f89dabb9eb..083f2e0ac3 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -102,7 +102,7 @@ class FederationHandler(BaseHandler):
 
         self.hs = hs
 
-        self.store = hs.get_datastore()  # type: synapse.storage.DataStore
+        self.store = hs.get_datastore()
         self.federation_client = hs.get_federation_client()
         self.state_handler = hs.get_state_handler()
         self.server_name = hs.hostname