Skip to content

Commit c2026c1

Browse files
committed
convert.py: sys.stderr.write --> logger.error
1 parent e7ccdb4 commit c2026c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ def default_outfile(model_paths: list[Path], file_type: GGMLFileType) -> Path:
14341434
}[file_type]
14351435
ret = model_paths[0].parent / f"ggml-model-{namestr}.gguf"
14361436
if ret in model_paths:
1437-
sys.stderr.write(
1437+
logger.error(
14381438
f"Error: Default output path ({ret}) would overwrite the input. "
14391439
"Please explicitly specify a path using --outfile.\n")
14401440
sys.exit(1)

0 commit comments

Comments
 (0)