From fed4aad9f946cdb128ce2a3b99d0c50a78f4600b Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Sat, 26 Sep 2026 15:06:51 -0300 Subject: [PATCH] Atualizar src-py/renatoxsr/utils/pandoc.py --- src-py/renatoxsr/utils/pandoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))