From: J.Endurium Date: Fri, 28 Oct 2022 05:18:55 +0000 (-0500) Subject: Breakout Response creation into separate method X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0cd3aa72bca9b5fdd64adeaeef8fdfbee628d1b0;p=tweepy.git Breakout Response creation into separate method --- diff --git a/tweepy/client.py b/tweepy/client.py index c7db560..2afda8e 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -137,6 +137,9 @@ class BaseClient: if self.return_type is dict: return response + return self._construct_response(response, data_type=data_type) + + def _construct_response(self, response, data_type=None): data = response.get("data") data = self._process_data(data, data_type=data_type)