From dfa10dd20905344c704a73f3839df575548d8868 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 23 Nov 2023 08:58:32 +0100 Subject: [PATCH] fix: skip missing yaml file (#605) --- ansibledoctor/utils/yamlhelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansibledoctor/utils/yamlhelper.py b/ansibledoctor/utils/yamlhelper.py index b1f129e..4e663e0 100644 --- a/ansibledoctor/utils/yamlhelper.py +++ b/ansibledoctor/utils/yamlhelper.py @@ -52,7 +52,7 @@ def parse_yaml(yamlfile): data = ruamel.yaml.YAML(typ="rt").load(yamlfile) _yaml_remove_comments(data) - data = defaultdict(dict, data) + data = defaultdict(dict, data or {}) except ( ruamel.yaml.parser.ParserError, ruamel.yaml.scanner.ScannerError,