Continue trying other requests even if one fails

This commit is contained in:
Matt Isenhower
2017-12-12 18:12:56 -08:00
parent 31470f5cc1
commit 2f4947690c

View File

@@ -20,8 +20,11 @@ const updaters = [
];
async function updateAll() {
for (let updater of updaters)
await updater.update();
for (let updater of updaters) {
try {
await updater.update();
} catch (e) { }
}
return 'Done';
}