Skip to content

Commit

Permalink
Merge pull request #567 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Raise exception if resource is not found in Cartographer map
  • Loading branch information
helrond authored Jun 6, 2023
2 parents 99f5ec9 + 591ee04 commit 1e406b1
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 1e406b1

Please sign in to comment.