[SettingsStore] Wrap getSettings in try catch

pull/48/head
Oj18 3 years ago
parent e811645995
commit 0235e0f308

@ -33,7 +33,11 @@ export const saveModuleSettings = async () => {
for (let p in goosemodScope.modules) {
if (goosemodScope.modules.hasOwnProperty(p)) {
settings[p] = await (goosemodScope.modules[p].goosemodHandlers.getSettings || (async () => []))();
try {
settings[p] = await (goosemodScope.modules[p].goosemodHandlers.getSettings || (async () => []))();
} catch (e) {
console.error('Failed to load settings to save module', p, e);
}
}
}

Loading…
Cancel
Save