From 02438c5f49e962b6c01038f4507478c7c12cb373 Mon Sep 17 00:00:00 2001 From: Diogo1703Silva Date: Thu, 30 Apr 2026 14:30:42 +0100 Subject: [PATCH] Fix LaTeX compilation check on Windows where exit code is non-zero even on success --- manimlib/utils/tex_file_writing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/tex_file_writing.py b/manimlib/utils/tex_file_writing.py index 6c85564e2e..b5ea2e4efa 100644 --- a/manimlib/utils/tex_file_writing.py +++ b/manimlib/utils/tex_file_writing.py @@ -118,7 +118,7 @@ def full_tex_to_svg(full_tex: str, compiler: str = "latex", message: str = ""): text=True ) - if process.returncode != 0: + if process.returncode != 0 and not dvi_path.exists(): # Handle error error_str = "" log_path = tex_path.with_suffix(".log")