Skip to content

Commit

Permalink
Fix return for Client.unfollow
Browse files Browse the repository at this point in the history
Properly return response from Client.unfollow_user rather than None
  • Loading branch information
Harmon758 committed Feb 26, 2022
1 parent 1f37c8b commit c1787f0
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 @@ -1525,7 +1525,7 @@ def unfollow(self, target_user_id, *, user_auth=True):
"Client.unfollow is deprecated; use Client.unfollow_user instead.",
DeprecationWarning
)
self.unfollow_user(target_user_id, user_auth=user_auth)
return self.unfollow_user(target_user_id, user_auth=user_auth)

def get_users_followers(self, id, *, user_auth=False, **params):
"""get_users_followers( \
Expand Down

0 comments on commit c1787f0

Please sign in to comment.