Ignore tweet_mode when warning about unexpected parameters
authorHarmon <Harmon758@gmail.com>
Sun, 4 Apr 2021 14:54:45 +0000 (09:54 -0500)
committerHarmon <Harmon758@gmail.com>
Sun, 4 Apr 2021 14:54:45 +0000 (09:54 -0500)
tweepy/api.py

index c4f816ac8a7f35928617f333c670f48737fc8636..5ea831f57d90fd77f647c4f09136a00045d122cb 100644 (file)
@@ -123,7 +123,7 @@ class API:
         for k, arg in kwargs.items():
             if arg is None:
                 continue
-            if k not in endpoint_parameters:
+            if k not in endpoint_parameters and k != "tweet_mode":
                 log.warning(f'Unexpected parameter: {k}')
             params[k] = str(arg)
         log.debug("PARAMS: %r", params)