Skip to content

Commit

Permalink
fix: skip missing yaml file (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Nov 23, 2023
1 parent 82398da commit dfa10dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansibledoctor/utils/yamlhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dfa10dd

Please sign in to comment.