Unverified Commit 28048bd6 authored by yzong-rh's avatar yzong-rh Committed by GitHub
Browse files

[Bugfix] Add missing f-string prefix in xgrammar choices error message (#38162)


Signed-off-by: default avatarYifan Zong <yzong@redhat.com>
parent c32e9760
......@@ -289,7 +289,7 @@ def validate_xgrammar_grammar(sampling_params: SamplingParams) -> None:
xgr.Grammar.from_ebnf(choice_grammar)
except Exception as err:
raise ValueError(
"Failed to transform choices into a grammar: {err}"
f"Failed to transform choices into a grammar: {err}"
) from err
so_params.choice = None
so_params.grammar = choice_grammar
......
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