Atualizar src-py/renatoxsr/utils/pandoc.py
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user