From bb9f98cad01d6683de54b235bad7e19498a5cbf0 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sat, 12 Dec 2009 15:21:19 -0600 Subject: [PATCH] Some minor fixes to parsers. --- tweepy/parsers.py | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.25.1