mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-23 08:43:42 +01:00
Don't hide errors if they are unexpected.
This commit is contained in:
parent
e6f0d5bf44
commit
7060108a8b
@ -518,7 +518,11 @@ async function doMakeImage(task) {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof SyntaxError && e.message.startsWith('JSON.parse')) {
|
||||
finalJSON += jsonStr
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
prevTime = t
|
||||
|
Loading…
Reference in New Issue
Block a user