From 4b126837c3c95e3384c64fcf93826fb8b01d50ac Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sun, 13 Sep 2009 12:33:22 -0500 Subject: [PATCH] Ignore arguments passed into binder that are none. Thanks Mark Lango for the suggestion! --- tweepy/binder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tweepy/binder.py b/tweepy/binder.py index 5595db3..6a55eff 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -39,6 +39,8 @@ def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False, except IndexError: raise TweepError('Too many parameters supplied!') for k, arg in kargs.items(): + if arg is None: + continue if k in parameters: raise TweepError('Multiple values for parameter %s supplied!' % k) if k not in allowed_param: -- 2.25.1