We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6522cff commit b963429Copy full SHA for b963429
1 file changed
instagram/models.py
@@ -96,7 +96,7 @@ def object_from_dictionary(cls, entry):
96
97
new_media.comment_count = entry['comments']['count']
98
new_media.comments = []
99
- for comment in entry['comments']['data']:
+ for comment in entry['comments'].get('data'):
100
new_media.comments.append(Comment.object_from_dictionary(comment))
101
102
new_media.users_in_photo = []
0 commit comments