From fe6ac9c5d709053abdd7a72297aaa64e6aa8e8fb Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 30 Apr 2019 18:28:01 +0100 Subject: [PATCH] Fixed return value --- synapse/rest/client/v2_alpha/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index f7110f3b4092..bf5d28b6e30e 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -510,7 +510,7 @@ def on_GET(self, request): # if the lookup is allowed so we don't need to do it here. ret = yield self.identity_handler.lookup_3pid(id_server, medium, address) - respond_with_json(200, ret) + defer.returnValue((200, ret)) class ThreepidBulkLookupRestServlet(RestServlet): @@ -537,7 +537,7 @@ def on_POST(self, request): body["id_server"], body["threepids"], ) - respond_with_json(200, ret) + defer.returnValue((200, ret)) class WhoamiRestServlet(RestServlet):