From 52d953814b8ab60b084605400e7f0a7b1d9ac147 Mon Sep 17 00:00:00 2001 From: Joshua Date: Sat, 30 Jan 2010 12:45:38 -0600 Subject: [PATCH] Fix API.search() by patching a bug in parsers. --- tweepy/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/parsers.py b/tweepy/parsers.py index e56cbf1..7b9fc13 100644 --- 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: -- 2.25.1