Skip to content

Commit

Permalink
Merge pull request #1997 from JEnduriumK/master
Browse files Browse the repository at this point in the history
Breakout Response creation into separate method
  • Loading branch information
Harmon758 committed Oct 28, 2022
2 parents a07d225 + 0cd3aa7 commit 16d51b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tweepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def _make_request(
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)

Expand Down

0 comments on commit 16d51b7

Please sign in to comment.