Skip to content

Commit

Permalink
Raise TypeError instead of ValueError (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Feb 5, 2024
1 parent fe4d664 commit 17766cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsezoo/utils/onnx/external_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def load_model(model: Union[str, ModelProto, Path]) -> ModelProto:
if isinstance(model, (Path, str)):
return onnx.load(clean_path(model))

raise ValueError(f"unknown type given for model: {type(model)}")
raise TypeError(f"unknown type given for model: {type(model)}")


def split_external_data(
Expand Down

0 comments on commit 17766cd

Please sign in to comment.