Skip to content

Commit

Permalink
catch potential errors
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Oct 19, 2023
1 parent 31d33e3 commit 45ee836
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/controller/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2619,8 +2619,11 @@ async function processMessage(msg: ioBroker.SendableMessage): Promise<null | voi
}

requestedRepoUpdates = [];

await listUpdatableOsPackages();
try {
await listUpdatableOsPackages();
} catch (e) {
logger.warn(`${hostLogPrefix} Could not check for new OS updates: ${e.message}`);
}
} else {
logger.error(
`${hostLogPrefix} Invalid request ${
Expand Down

0 comments on commit 45ee836

Please sign in to comment.