Skip to content

Commit

Permalink
Bug fix hardikvasa#373 "'NoneType' object is not subscriptable error"
Browse files Browse the repository at this point in the history
  • Loading branch information
bulatnv authored Jan 20, 2023
1 parent 6a4f60b commit bc8ba08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google_images_download/google_images_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ def get_all_tabs(self, page):
def format_object(self, object):
data = object[1]
main = data[3]
info = data[9]
info = data[23]
if info is None:
info = data[11]
info = data[22]
formatted_object = {}
try:
formatted_object['image_height'] = main[2]
Expand Down

0 comments on commit bc8ba08

Please sign in to comment.