From 0742f549fae6118dd7b154ea9244077d124751a2 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Feb 2022 13:38:32 -0600 Subject: [PATCH] Fix return for Client.follow Properly return response from Client.follow_user rather than None --- tweepy/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1