Ignore any arguments that are None.
authorJosh Roesslein <jroesslein@gmail.com>
Wed, 16 Jun 2010 06:36:04 +0000 (01:36 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Wed, 16 Jun 2010 06:36:04 +0000 (01:36 -0500)
Fixes issues #33

tweepy/binder.py

index b7ad993210e53414788e60801eebf0586d296f67..731ab6234284e55507ce6767ef76af1fd9c05a8b 100644 (file)
@@ -67,6 +67,8 @@ def bind_api(**config):
         def build_parameters(self, args, kargs):
             self.parameters = {}
             for idx, arg in enumerate(args):
+                if arg is None:
+                    continue
 
                 try:
                     self.parameters[self.allowed_param[idx]] = convert_to_utf8_str(arg)