From b08d4e945040350dab43a52040431eddff1c60c0 Mon Sep 17 00:00:00 2001 From: bas Date: Tue, 17 Oct 2023 13:43:25 +0200 Subject: [PATCH] Add raise statement to ValueError --- optimum/exporters/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimum/exporters/tasks.py b/optimum/exporters/tasks.py index 4dc5ce8ae33..3a9a751950e 100644 --- a/optimum/exporters/tasks.py +++ b/optimum/exporters/tasks.py @@ -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)!" )