diff --git a/src-py/renatoxsr/utils/pandoc.py b/src-py/renatoxsr/utils/pandoc.py index afdc7e4..5d89724 100644 --- a/src-py/renatoxsr/utils/pandoc.py +++ b/src-py/renatoxsr/utils/pandoc.py @@ -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))