Skip to content

Commit 16d51b7

Browse files
authored
Merge pull request tweepy#1997 from JEnduriumK/master
Breakout Response creation into separate method
2 parents a07d225 + 0cd3aa7 commit 16d51b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tweepy/client.py

+3
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ def _make_request(
137137
if self.return_type is dict:
138138
return response
139139

140+
return self._construct_response(response, data_type=data_type)
141+
142+
def _construct_response(self, response, data_type=None):
140143
data = response.get("data")
141144
data = self._process_data(data, data_type=data_type)
142145

0 commit comments

Comments
 (0)