From: Harmon Date: Sun, 4 Apr 2021 14:54:45 +0000 (-0500) Subject: Ignore tweet_mode when warning about unexpected parameters X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e2ffd9d86be9e6f32d2bfa508c530d2be516519;p=tweepy.git Ignore tweet_mode when warning about unexpected parameters --- diff --git a/tweepy/api.py b/tweepy/api.py index c4f816a..5ea831f 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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)