Skip to content

Commit b963429

Browse files
committed
1 parent 6522cff commit b963429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instagram/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def object_from_dictionary(cls, entry):
9696

9797
new_media.comment_count = entry['comments']['count']
9898
new_media.comments = []
99-
for comment in entry['comments']['data']:
99+
for comment in entry['comments'].get('data'):
100100
new_media.comments.append(Comment.object_from_dictionary(comment))
101101

102102
new_media.users_in_photo = []

0 commit comments

Comments
 (0)