From: Joshua Date: Sat, 30 Jan 2010 18:45:38 +0000 (-0600) Subject: Fix API.search() by patching a bug in parsers. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52d953814b8ab60b084605400e7f0a7b1d9ac147;p=tweepy.git Fix API.search() by patching a bug in parsers. --- 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: