Skip to content

Commit

Permalink
Fix "None type error" by changing location of image_host string in in…
Browse files Browse the repository at this point in the history
…fo object.
  • Loading branch information
Joeclinton1 committed Sep 26, 2021
1 parent e13cc55 commit c773e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_images_download/google_images_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def format_object(self, object):
formatted_object['image_link'] = main[0]
formatted_object['image_format'] = main[0][-1 * (len(main[0]) - main[0].rfind(".") - 1):]
formatted_object['image_description'] = info['2003'][3]
formatted_object['image_host'] = info['183836587'][0]
formatted_object['image_host'] = info['2003'][17]
formatted_object['image_source'] = info['2003'][2]
formatted_object['image_thumbnail_url'] = data[2][0]
except Exception as e:
Expand Down

0 comments on commit c773e1c

Please sign in to comment.