From 175042c9d9bcbf4237fe4e94fa230232258c8624 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 8 Apr 2026 09:53:44 +0100 Subject: [PATCH] fix: guard YAMLConfig.keys() against non-dict YAML content YAML files with list content (e.g. no_run.yaml) caused an AttributeError when the config system tried to iterate their keys during startup, breaking all workspace script imports. Co-Authored-By: Claude Opus 4.6 --- autoconf/directory_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoconf/directory_config.py b/autoconf/directory_config.py index b733b5f..39ebde7 100644 --- a/autoconf/directory_config.py +++ b/autoconf/directory_config.py @@ -80,6 +80,8 @@ def _getitem(self, item): return value def keys(self): + if not isinstance(self._dict, dict): + return iter(()) return self._dict.keys()