Skip to content

Commit 0cd3aa7

Browse files
J.EnduriumJ.Endurium
authored andcommitted
Breakout Response creation into separate method
1 parent a07d225 commit 0cd3aa7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tweepy/client.py

Lines changed: 3 additions & 0 deletions
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)