Skip to content

Commit

Permalink
Fix return for Client.follow
Browse files Browse the repository at this point in the history
Properly return response from Client.follow_user rather than None
  • Loading branch information
Harmon758 committed Feb 26, 2022
1 parent c1787f0 commit 0742f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweepy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ def follow(self, target_user_id, *, user_auth=True):
"Client.follow is deprecated; use Client.follow_user instead.",
DeprecationWarning
)
self.follow_user(target_user_id, user_auth=user_auth)
return self.follow_user(target_user_id, user_auth=user_auth)

# Mutes

Expand Down

0 comments on commit 0742f54

Please sign in to comment.