mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
fix: ensure we don't throw an error in an event callback
This commit is contained in:
@@ -53,8 +53,12 @@ export const myservers = () => {
|
||||
myServersConfig.remote.wanaccess = file.remote.wanaccess;
|
||||
myServersConfig.remote.wanport = file.remote.wanport;
|
||||
|
||||
// Ensure api manager has the correct keys loaded
|
||||
await apiManager.checkKey(myserversConfigFilePath, true);
|
||||
try {
|
||||
// Ensure api manager has the correct keys loaded
|
||||
await apiManager.checkKey(myserversConfigFilePath, true);
|
||||
} catch (error: unknown) {
|
||||
coreLogger.debug('Failed checking API key with "%s"', (error as Error)?.message || error);
|
||||
}
|
||||
});
|
||||
|
||||
// Save ref for cleanup
|
||||
|
||||
Reference in New Issue
Block a user