Skip to content

Commit 438da55

Browse files
authored
try catch running the inkscape command (#479)
1 parent 49d40ef commit 438da55

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/generators/Manual.hx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ class Manual {
134134
for (image in FileSystem.readDirectory(Config.manualImageDir)) {
135135
var inPath = Path.join([Config.manualImageDir, image]);
136136
var outPath = Path.join([Config.outputFolder, "manual", image]);
137-
138-
cmd("inkscape", [inPath, '--export-png=$outPath.png']);
137+
try {
138+
cmd("inkscape", [inPath, '--export-png=$outPath.png']);
139+
}catch(_) {
140+
continue;
141+
}
139142

140143
// Path the svg figure to include the link to the font css
141144
var xml = Xml.parse(File.getContent(inPath));

0 commit comments

Comments
 (0)