Skip to content

Commit

Permalink
Merge pull request #189 from Benjamin-Loison/simplify
Browse files Browse the repository at this point in the history
Simplify `google_play_scraper/utils/__init__.py`
  • Loading branch information
JoMingyu authored Aug 16, 2023
2 parents d741442 + 2a71a18 commit 654bcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_play_scraper/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ def nested_lookup(source, indexes):
if len(indexes) == 1:
return source[indexes[0]]

return nested_lookup(source[indexes[0]], indexes[1::])
return nested_lookup(source[indexes[0]], indexes[1:])
except TypeError:
return None

0 comments on commit 654bcc5

Please sign in to comment.