Commit 4b126837 authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Ignore arguments passed into binder that are none. Thanks Mark Lango for the suggestion!

parent 46963275
......@@ -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:
if k in parameters:
raise TweepError('Multiple values for parameter %s supplied!' % k)
if k not in allowed_param:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment