larryng/narwal — pull request #5 by staticsafe (2012-12-06 16:10:13+00:00)
Title: Fix some more ValueErrors

Example error:

Traceback (most recent call last):
File "/home/ss/dev/lazyreddit/lazyreddit.py", line 52, in
r.hot(sr=subreddits, limit=10)])
File "/usr/local/lib/python2.6/dist-packages/narwal/reddit.py", line 230, in hot
return self._subreddit_get(sr, None, limit=limit)
File "/usr/local/lib/python2.6/dist-packages/narwal/reddit.py", line 211, in _subreddit_get
return self._limit_get(*args, limit=limit)
File "/usr/local/lib/python2.6/dist-packages/narwal/reddit.py", line 202, in _limit_get
r = self.get(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/narwal/reddit.py", line 24, in wrapper
return f(self, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/narwal/reddit.py", line 143, in get
raise BadResponse(r)
File "/usr/local/lib/python2.6/dist-packages/narwal/exceptions.py", line 29, in __init__
super(BadResponse, self).__init__('{} received'.format(response.status_code))
ValueError: zero length field name in format