From: Jenny Loomis Date: Tue, 24 Aug 2010 17:55:25 +0000 (-0700) Subject: Fix for null twitter json objects. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8259c3b2268e40fb9eb79ede2bf479b76dc3bea6;p=tweepy.git 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 --- 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