mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 07:36:29 +00:00
Fix keyerror on unnamed containers (#3765)
This commit is contained in:
parent
d097044fa8
commit
a45789c906
@ -63,7 +63,7 @@ class DockerMonitor(CoreSysAttributes, Thread):
|
||||
|
||||
if event["Type"] == "container" and (
|
||||
LABEL_MANAGED in attributes
|
||||
or attributes["name"] in self._unlabeled_managed_containers
|
||||
or attributes.get("name") in self._unlabeled_managed_containers
|
||||
):
|
||||
container_state: Optional[ContainerState] = None
|
||||
action: str = event["Action"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user