projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
470897f
)
Fix API.search() by patching a bug in parsers.
author
Joshua
<jroesslein@gmail.com>
Sat, 30 Jan 2010 18:45:38 +0000
(12:45 -0600)
committer
Joshua
<jroesslein@gmail.com>
Sat, 30 Jan 2010 18:45:38 +0000
(12:45 -0600)
tweepy/parsers.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/parsers.py
b/tweepy/parsers.py
index e56cbf155aa5317684fd359ff086dcc1ec373f7e..7b9fc13fb537e5846f78c72ad853e10a5023a6f6 100644
(file)
--- a/
tweepy/parsers.py
+++ b/
tweepy/parsers.py
@@
-30,7
+30,7
@@
class JSONParser(Parser):
except Exception, e:
raise TweepError('Failed to parse JSON payload: %s' % e)
- if
payload_list and isinstance(json, dict)
:
+ if
isinstance(json, dict) and 'previous_cursor' in json and 'next_cursor' in json
:
cursors = json['previous_cursor'], json['next_cursor']
return json, cursors
else: