Skip to content

Commit d11b46f

Browse files
[bugfix] fix f-string for error (vllm-project#9295)
Signed-off-by: Prashant Gupta <[email protected]>
1 parent c6cf929 commit d11b46f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vllm/transformers_utils/tokenizers/mistral.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def find_tokenizer_file(files: List[str]):
3030
matched_files = [file for file in files if file_pattern.match(file)]
3131
if len(matched_files) > 1:
3232
raise OSError(f"Found {len(matched_files)} files matching the "
33-
"pattern: {matched_files}. Make sure only one Mistral "
34-
"tokenizer is present in {tokenizer_name}.")
33+
f"pattern: {file_pattern}. Make sure only one Mistral "
34+
f"tokenizer is present in {files}.")
3535
elif len(matched_files) == 0:
3636
raise OSError(f"Found {len(matched_files)} files matching the "
37-
"pattern: {matched_files}. Make sure that a Mistral "
38-
"tokenizer is present in {tokenizer_name}.")
37+
f"pattern: {file_pattern}. Make sure that a Mistral "
38+
f"tokenizer is present in {files}.")
3939

4040
return matched_files[0]
4141

0 commit comments

Comments
 (0)