Skip to content

Commit

Permalink
better exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Feb 20, 2025
1 parent 6069027 commit c013ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelconverter/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def slug_to_id(
slug: str, endpoint: Literal["models", "modelVersions", "modelInstances"]
) -> str:
for is_public in [True, False]:
with suppress(Exception):
with suppress(HTTPError):
params = {
"is_public": is_public,
"slug": slug,
Expand Down

0 comments on commit c013ab0

Please sign in to comment.