From d69befda434b65ac62848033509ae46e447c43bf Mon Sep 17 00:00:00 2001 From: Matt Howa Date: Mon, 10 Apr 2017 14:56:22 -0600 Subject: [PATCH] Update models.py Code on lines 100 & 101 were causing the JSON parsing to fail. The api does not return comments actual comments with this request (at least anymore) --- instagram/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/instagram/models.py b/instagram/models.py index d2517ca2..267cc71d 100644 --- a/instagram/models.py +++ b/instagram/models.py @@ -96,8 +96,9 @@ def object_from_dictionary(cls, entry): new_media.comment_count = entry['comments']['count'] new_media.comments = [] - for comment in entry['comments']['data']: - new_media.comments.append(Comment.object_from_dictionary(comment)) +# Depreciated +# for comment in entry['comments']['data']: +# new_media.comments.append(Comment.object_from_dictionary(comment)) new_media.users_in_photo = [] if entry.get('users_in_photo'):