diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gen-thumbs.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gen-thumbs.js b/src/gen-thumbs.js index 18d1964d..65f0a4da 100644 --- a/src/gen-thumbs.js +++ b/src/gen-thumbs.js @@ -250,7 +250,11 @@ async function getImageMagickVersion(binary) { allData += data.toString(); }); - await promisifyProcess(proc, false); + try { + await promisifyProcess(proc, false); + } catch (error) { + return null; + } if (!allData.match(/ImageMagick/i)) { return null; |