From 9983735313c10906479348621f835bbbc38e5619 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 Oct 2022 01:20:20 -0500 Subject: [PATCH] Use _construct_response in AsyncClient._make_request --- tweepy/asynchronous/client.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tweepy/asynchronous/client.py b/tweepy/asynchronous/client.py index be256aea3..e0bdf3c63 100644 --- a/tweepy/asynchronous/client.py +++ b/tweepy/asynchronous/client.py @@ -155,16 +155,7 @@ async def _make_request( if self.return_type is dict: return response - data = response.get("data") - data = self._process_data(data, data_type=data_type) - - includes = response.get("includes", {}) - includes = self._process_includes(includes) - - errors = response.get("errors", []) - meta = response.get("meta", {}) - - return Response(data, includes, errors, meta) + return self._construct_response(response, data_type=data_type) class AsyncClient(AsyncBaseClient):