Unverified Commit fadb8d5c authored by Zhonghua Deng's avatar Zhonghua Deng Committed by GitHub
Browse files

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


Signed-off-by: default avatarAbatom <abzhonghua@gmail.com>
parent 2aa5470a
...@@ -159,7 +159,7 @@ class InputProcessingContext(InputContext): ...@@ -159,7 +159,7 @@ class InputProcessingContext(InputContext):
msg = (f"Failed to apply {type(hf_processor).__name__} " msg = (f"Failed to apply {type(hf_processor).__name__} "
f"on data={data} with kwargs={merged_kwargs}") f"on data={data} with kwargs={merged_kwargs}")
raise RuntimeError(msg) from exc raise ValueError(msg) from exc
class DummyData(NamedTuple): class DummyData(NamedTuple):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment