Skip to content

Commit 2dc48be

Browse files
authored
Merge pull request #84 from rhayes777/feature/fix-yaml-list-config
fix: guard YAMLConfig.keys() against non-dict YAML content
2 parents b4c9868 + 175042c commit 2dc48be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

autoconf/directory_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def _getitem(self, item):
8080
return value
8181

8282
def keys(self):
83+
if not isinstance(self._dict, dict):
84+
return iter(())
8385
return self._dict.keys()
8486

8587

0 commit comments

Comments
 (0)