From: Joshua Roesslein Date: Sat, 12 Dec 2009 21:21:19 +0000 (-0600) Subject: Some minor fixes to parsers. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bb9f98cad01d6683de54b235bad7e19498a5cbf0;p=tweepy.git Some minor fixes to parsers. --- diff --git a/tweepy/parsers.py b/tweepy/parsers.py index 0ebaf19..0ea115e 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -109,6 +109,7 @@ def parse_users(obj, api): users = [] for item in item_list: + if item is None: break # sometimes an empty list with a null in it users.append(parse_user(item, api)) return users @@ -237,6 +238,7 @@ def parse_search_results(obj, api): def parse_list(obj, api): lst = models['list']() + lst._api = api for k,v in obj.items(): if k == 'user': setattr(lst, k, parse_user(v, api))