moonraker: prevent duplicate failed components
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
2a0be55a8d
commit
f0831cbe3c
|
@ -239,7 +239,8 @@ class Server:
|
|||
except Exception:
|
||||
msg = f"Unable to load component: ({component_name})"
|
||||
logging.exception(msg)
|
||||
self.failed_components.append(component_name)
|
||||
if component_name not in self.failed_components:
|
||||
self.failed_components.append(component_name)
|
||||
if isinstance(default, SentinelClass):
|
||||
raise ServerError(msg)
|
||||
return default
|
||||
|
|
Loading…
Reference in New Issue