From: Harmon <Harmon758@gmail.com>
Date: Sat, 20 Aug 2022 14:46:17 +0000 (-0500)
Subject: Ignore AsyncClient method parameters explicitly passed as None
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=29620e33840573a00e620e87e0fd59db6c33375b;p=tweepy.git

Ignore AsyncClient method parameters explicitly passed as None

Resolves #1944
---

diff --git a/tweepy/client.py b/tweepy/client.py
index 45ef842..5f25c1a 100644
--- a/tweepy/client.py
+++ b/tweepy/client.py
@@ -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: