silently fail when pixellog file doesn't exist

fix #76
This commit is contained in:
HF 2023-12-13 12:15:17 +01:00
parent 9c5596d86a
commit 18d9828b2b

View File

@ -268,6 +268,7 @@ export async function executeImageAction(
* register responses on socket for Watch Actions
*/
socketEvents.onReq('watch', (action, ...args) => {
try {
if (action === 'getIIDSummary') {
return getIIDSummary(...args);
} if (action === 'getIIDPixels') {
@ -277,6 +278,9 @@ socketEvents.onReq('watch', (action, ...args) => {
} if (action === 'getPixelsFromArea') {
return getPixelsFromArea(...args);
}
} catch {
// silently fail when file couldn't be parsed
}
return null;
});