Atualizar src-py/renatoxsr/utils/pandoc.py

This commit is contained in:
2026-09-26 15:06:51 -03:00
parent 1e74a727f8
commit fed4aad9f9
+1 -1
View File
@@ -27,7 +27,7 @@ def pandoc(
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), input_file)
outf = Path(output)
if all(output != "-", outf.is_file(), not overwrite):
if output != "-" and outf.is_file() and not overwrite:
raise FileExistsError(errno.EEXIST, os.strerror(errno.EEXIST), outf)
cmd = [bin, "--output", "-" if output=="-" else outf.resolve(), fpath]
logger.debug("CMD %s", str(cmd))