fix: skip missing yaml file (#605)

This commit is contained in:
Robert Kaussow 2023-11-23 08:58:32 +01:00 committed by GitHub
parent 82398da75d
commit dfa10dd209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def parse_yaml(yamlfile):
data = ruamel.yaml.YAML(typ="rt").load(yamlfile) data = ruamel.yaml.YAML(typ="rt").load(yamlfile)
_yaml_remove_comments(data) _yaml_remove_comments(data)
data = defaultdict(dict, data) data = defaultdict(dict, data or {})
except ( except (
ruamel.yaml.parser.ParserError, ruamel.yaml.parser.ParserError,
ruamel.yaml.scanner.ScannerError, ruamel.yaml.scanner.ScannerError,