mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Fix updatenotification (#3281)
Sometime, `pm2 jlist` don't send an json reponse Catch error if happen --------- Co-authored-by: bugsounet <bugsounet@bugsounet.fr>
This commit is contained in:
parent
e77f10b86d
commit
74854387cd
@ -40,6 +40,7 @@ _This release is scheduled to be released on 2024-01-01._
|
|||||||
- Fix #3256 filter out bad results from rrule.between
|
- Fix #3256 filter out bad results from rrule.between
|
||||||
- Fix calendar events sometimes not respecting deleted events (#3250)
|
- Fix calendar events sometimes not respecting deleted events (#3250)
|
||||||
- Fix electron loadurl locally on Windows when address "0.0.0.0" (#2550)
|
- Fix electron loadurl locally on Windows when address "0.0.0.0" (#2550)
|
||||||
|
- Fix updatanotification (update_helper.js): catch error if reponse is not an JSON format (check PM2)
|
||||||
|
|
||||||
## [2.25.0] - 2023-10-01
|
## [2.25.0] - 2023-10-01
|
||||||
|
|
||||||
|
@ -198,8 +198,14 @@ class Updater {
|
|||||||
resolve(null);
|
resolve(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let result = JSON.parse(std);
|
try {
|
||||||
resolve(result);
|
let result = JSON.parse(std);
|
||||||
|
resolve(result);
|
||||||
|
} catch (e) {
|
||||||
|
Log.error("updatenotification: [PM2] can't GetList!");
|
||||||
|
Log.debug("updatenotification: [PM2] GetList is not an JSON format", e);
|
||||||
|
resolve(null);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user