diff --git a/ui/media/main.js b/ui/media/main.js index e92afc81..864d6c4a 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -518,7 +518,11 @@ async function doMakeImage(task) { } } } catch (e) { - finalJSON += jsonStr + if (e instanceof SyntaxError && e.message.startsWith('JSON.parse')) { + finalJSON += jsonStr + } else { + throw e + } } prevTime = t