From 3670e16e9c348b4a99a53dc626717db94c7d4ae1 Mon Sep 17 00:00:00 2001 From: brian khuu Date: Tue, 9 Apr 2024 20:57:28 +1000 Subject: [PATCH] convert.py: sys.stderr.write --> logger.error --- convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert.py b/convert.py index fabb49e57..bde0676cb 100755 --- a/convert.py +++ b/convert.py @@ -1441,9 +1441,9 @@ def default_outfile(model_paths: list[Path], file_type: GGMLFileType) -> Path: }[file_type] ret = model_paths[0].parent / f"ggml-model-{namestr}.gguf" if ret in model_paths: - sys.stderr.write( + logger.error( f"Error: Default output path ({ret}) would overwrite the input. " - "Please explicitly specify a path using --outfile.\n") + "Please explicitly specify a path using --outfile.") sys.exit(1) return ret