« get me outta code hell

thumbs: probably fix using wrong convert command?? - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-19 13:21:08 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-19 13:21:08 -0300
commit0e613cf94a3fade7050fc2e50e8bfbab8d532ad2 (patch)
treea17bf8118ef822a04ed61dcef8b5711467f54b41
parentd09e04b155fe2ed3d0681edf14f7de67ae8be61c (diff)
thumbs: probably fix using wrong convert command??
-rw-r--r--src/gen-thumbs.js6
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;