Ignore AsyncClient method parameters explicitly passed as None
authorHarmon <Harmon758@gmail.com>
Sat, 20 Aug 2022 14:46:17 +0000 (09:46 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 20 Aug 2022 14:46:17 +0000 (09:46 -0500)
Resolves #1944

tweepy/client.py

index 45ef842c6a9d1559296ede669cce45dd29334259..5f25c1a5fd39f35e4c15c4914e3f17d93cc22809 100644 (file)
@@ -181,7 +181,7 @@ class BaseClient:
                     "%Y-%m-%dT%H:%M:%SZ"
                 )
                 # TODO: Constant datetime format string?
-            else:
+            elif param_value is not None:
                 request_params[param_name] = param_value
 
             if param_name not in endpoint_parameters: