Skip to content

Commit

Permalink
feat: prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Feb 28, 2024
1 parent a7f1741 commit 4336111
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ai4papi/routers/v1/catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_metadata(
if item_name not in items.keys():
raise HTTPException(
status_code=400,
detail=f"Item {item_name} not in catalog: {items.keys()}",
detail=f"Item {item_name} not in catalog: {list(items.keys())}",
)

# Retrieve metadata from default branch
Expand Down
2 changes: 1 addition & 1 deletion ai4papi/routers/v1/catalog/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_metadata(
if item_name not in items.keys():
raise HTTPException(
status_code=400,
detail=f"Item {item_name} not in catalog: {items.keys()}",
detail=f"Item {item_name} not in catalog: {list(items.keys())}",
)

# Retrieve metadata from default branch
Expand Down
2 changes: 1 addition & 1 deletion ai4papi/routers/v1/catalog/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_metadata(
if item_name not in items.keys():
raise HTTPException(
status_code=400,
detail=f"Item {item_name} not in catalog: {items.keys()}",
detail=f"Item {item_name} not in catalog: {list(items.keys())}",
)

# Retrieve metadata from default branch
Expand Down

0 comments on commit 4336111

Please sign in to comment.