Fix return for Client.follow
authorHarmon <Harmon758@gmail.com>
Sat, 26 Feb 2022 19:38:32 +0000 (13:38 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 26 Feb 2022 19:38:32 +0000 (13:38 -0600)
Properly return response from Client.follow_user rather than None

tweepy/client.py

index 952c90c0c956fe706deea174ea3fde1236497f46..e6333dba522db776d62b7b36034e931ea6baa3e7 100644 (file)
@@ -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