Skip to content

Commit

Permalink
raise exception if resource is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
helrond committed Jun 6, 2023
1 parent 137ff9c commit 591ee04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fetcher/fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,6 @@ def get_deleted(self):
return data

async def get_item(self, obj_ref):
return clients["cartographer"].get(obj_ref).json()
resp = clients["cartographer"].get(obj_ref)
resp.raise_for_status()
return resp.json()

0 comments on commit 591ee04

Please sign in to comment.