From 8259c3b2268e40fb9eb79ede2bf479b76dc3bea6 Mon Sep 17 00:00:00 2001 From: Jenny Loomis Date: Tue, 24 Aug 2010 10:55:25 -0700 Subject: [PATCH] Fix for null twitter json objects. Don't die while waiting for fix to twitter api issue 1823: http://code.google.com/p/twitter-api/issues/detail?id=1823 --- tweepy/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tweepy/models.py b/tweepy/models.py index e79eac9..b584fbc 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -35,7 +35,8 @@ class Model(object): """Parse a list of JSON objects into a result set of model instances.""" results = ResultSet() for obj in json_list: - results.append(cls.parse(api, obj)) + if obj: + results.append(cls.parse(api, obj)) return results -- 2.25.1