Commit 8259c3b2 authored by Jenny Loomis's avatar Jenny Loomis Committed by Josh Roesslein
Browse files

Fix for null twitter json objects.

Don't die while waiting for fix to twitter api issue 1823:
parent 387c438d
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment