Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Feb 15, 2024
1 parent ddf1bf2 commit e026039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inat_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def download_observation(self, observation_id, image_uuid):
response = urllib.request.urlopen(url)
data = json.loads(response.read())
if (data is None or data["results"] is None or len ( data["results"] ) == 0 or data["results"][0] is
None or data["results"][0]["photos"] is None or data["results"][0]["photos"][0] is
None or data["results"][0]["photos"] is None or len ( data["results"][0]["photos"] ) == 0 or data["results"][0]["photos"][0] is
None or data["results"][0]["photos"][0]["url"] is None):
return None, None, None, None
# download the first image if it isn't already cached
Expand Down

0 comments on commit e026039

Please sign in to comment.