From 66fdd1cbf903f3fe98008a37259f9de673071bbf Mon Sep 17 00:00:00 2001 From: Joey <9813078+PXshadow@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:43:22 +0300 Subject: [PATCH] try catch running the inkscape command --- src/generators/Manual.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/generators/Manual.hx b/src/generators/Manual.hx index eedb141b..0d5d0d81 100644 --- a/src/generators/Manual.hx +++ b/src/generators/Manual.hx @@ -134,8 +134,11 @@ class Manual { for (image in FileSystem.readDirectory(Config.manualImageDir)) { var inPath = Path.join([Config.manualImageDir, image]); var outPath = Path.join([Config.outputFolder, "manual", image]); - - cmd("inkscape", [inPath, '--export-png=$outPath.png']); + try { + cmd("inkscape", [inPath, '--export-png=$outPath.png']); + }catch(_) { + continue; + } // Path the svg figure to include the link to the font css var xml = Xml.parse(File.getContent(inPath));