Ignore arguments passed into binder that are none. Thanks Mark Lango for the suggestion!
authorJosh Roesslein <jroesslein@gmail.com>
Sun, 13 Sep 2009 17:33:22 +0000 (12:33 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Sun, 13 Sep 2009 17:33:22 +0000 (12:33 -0500)
tweepy/binder.py

index 5595db35089ffdf174fb8b5b2247e1509fd0d000..6a55efff09e12dbb9e93120b94cf3f3d0c899812 100644 (file)
@@ -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: