[Bugfix]Change the exception thrown by call_hf_processor from RuntimeError to ValueError (#18181)

Signed-off-by: Abatom <abzhonghua@gmail.com>
This commit is contained in:
Zhonghua Deng 2025-05-16 00:01:47 +08:00 committed by GitHub
parent 2aa5470ac5
commit fadb8d5c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,7 +159,7 @@ class InputProcessingContext(InputContext):
msg = (f"Failed to apply {type(hf_processor).__name__} "
f"on data={data} with kwargs={merged_kwargs}")
raise RuntimeError(msg) from exc
raise ValueError(msg) from exc
class DummyData(NamedTuple):