Skip to content

Commit ff3ad88

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,9 +1434,9 @@ 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. "
1439-
"Please explicitly specify a path using --outfile.\n")
1439+
"Please explicitly specify a path using --outfile.")
14401440
sys.exit(1)
14411441
return ret
14421442

0 commit comments

Comments
 (0)