act
Some checks failed
Lints / typos (push) Successful in 18s
Build and deploy / build (push) Failing after 5m34s

This commit is contained in:
2025-01-21 16:46:23 -08:00
parent ac3d5b20f2
commit c475b7f178
2 changed files with 15 additions and 3 deletions

View File

@ -213,7 +213,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
stderr=subprocess.PIPE,
)
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.pdf")
try:
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.pdf")
except Exception as e:
log(f"Error: {e}")
log_error(res)
if res.returncode != 0:
log_error(res)
@ -232,7 +236,11 @@ def build_xetex(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
stderr=subprocess.PIPE,
)
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.sols.pdf")
try:
shutil.copy(source_dir / "main.pdf", f"{out}/{meta['title']}.sols.pdf")
except Exception as e:
log(f"Error: {e}")
log_error(res)
if res.returncode != 0:
log_error(res)