From a45789c906a5d47dfdb205c566ba1572fa41a96d Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Tue, 2 Aug 2022 15:40:27 -0400 Subject: [PATCH] Fix keyerror on unnamed containers (#3765) --- supervisor/docker/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/docker/monitor.py b/supervisor/docker/monitor.py index 2038bc35b..dbdd8167c 100644 --- a/supervisor/docker/monitor.py +++ b/supervisor/docker/monitor.py @@ -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"]