Skip to content

Commit

Permalink
Add raise statement to ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
bk-jc committed Oct 17, 2023
1 parent 5eb4120 commit b08d4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ def infer_library_from_model(
library_name = "transformers"

if library_name is None:
ValueError(
raise ValueError(
"The library_name could not be automatically inferred. If using the command-line, please provide the argument --library (transformers,diffusers,timm)!"
)

Expand Down

0 comments on commit b08d4e9

Please sign in to comment.