Skip to content

Commit

Permalink
Update metacatalog_api/router/api/read.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
mmaelicke and coderabbitai[bot] authored Dec 27, 2024
1 parent c4f960a commit 1917f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metacatalog_api/router/api/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ def get_entry(id: int):
entries = core.entries(ids=id)

if len(entries) == 0:
return HTTPException(status_code=404, detail=f"Entry of <ID={id}> not found")
raise HTTPException(status_code=404, detail=f"Entry of <ID={id}> not found")
return entries[0]


@read_router.get('/licenses')
@read_router.get('/licenses.json')
def get_licenses(license_id: int | None = None):
Expand Down

0 comments on commit 1917f6b

Please sign in to comment.