From: Harmon Date: Sat, 26 Feb 2022 19:38:32 +0000 (-0600) Subject: Fix return for Client.follow X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0742f549fae6118dd7b154ea9244077d124751a2;p=tweepy.git Fix return for Client.follow Properly return response from Client.follow_user rather than None --- diff --git a/tweepy/client.py b/tweepy/client.py index 952c90c..e6333db 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1671,7 +1671,7 @@ class Client(BaseClient): "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