summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2016-10-20 11:52:46 +0100
committerLuke Barnard <lukeb@openmarket.com>2016-10-20 11:52:46 +0100
commit8bfd01f6191df2bdd1275b30cdd6b9e99f4d6473 (patch)
treea1ca2072d1793683cabd6edd7afc1996ca587687 /synapse
parentUse real AS object by passing it through the requester (diff)
downloadsynapse-8bfd01f6191df2bdd1275b30cdd6b9e99f4d6473.tar.xz
flake8
Diffstat (limited to '')
-rw-r--r--synapse/api/auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index c0bd0890fa..5fc0150bdc 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -606,7 +606,9 @@ class Auth(object):
             user_id, as_user = yield self._get_appservice_user_id(request)
             if user_id:
                 request.authenticated_entity = user_id
-                defer.returnValue(synapse.types.create_requester(user_id, as_user=as_user))
+                defer.returnValue(
+                    synapse.types.create_requester(user_id, as_user=as_user)
+                )
 
             access_token = get_access_token_from_request(
                 request, self.TOKEN_NOT_FOUND_HTTP_STATUS