Skip to content

Commit 83fe7f4

Browse files
committed
guard against users_in_photo being none
1 parent 17c38f6 commit 83fe7f4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

instagram/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def object_from_dictionary(cls, entry):
100100
new_media.comments.append(Comment.object_from_dictionary(comment))
101101

102102
new_media.users_in_photo = []
103-
104103
if entry.get('users_in_photo'):
105104
for user_in_photo in entry['users_in_photo']:
106105
new_media.users_in_photo.append(UserInPhoto.object_from_dictionary(user_in_photo))

0 commit comments

Comments
 (0)