From: Josh Roesslein Date: Sun, 13 Sep 2009 17:33:22 +0000 (-0500) Subject: Ignore arguments passed into binder that are none. Thanks Mark Lango for the suggestion! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4b126837c3c95e3384c64fcf93826fb8b01d50ac;p=tweepy.git Ignore arguments passed into binder that are none. Thanks Mark Lango for the suggestion! --- 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: