Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ritter-eb committed Jun 15, 2016
1 parent 6522cff commit b963429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instagram/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def object_from_dictionary(cls, entry):

new_media.comment_count = entry['comments']['count']
new_media.comments = []
for comment in entry['comments']['data']:
for comment in entry['comments'].get('data'):
new_media.comments.append(Comment.object_from_dictionary(comment))

new_media.users_in_photo = []
Expand Down

0 comments on commit b963429

Please sign in to comment.