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

tweepy/client.py

index 0e96b4b3303a474e69aad1594ea1d38614202371..952c90c0c956fe706deea174ea3fde1236497f46 100644 (file)
@@ -1525,7 +1525,7 @@ class Client(BaseClient):
             "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( \