Skip to content
Snippets Groups Projects
Commit c8ad9ef9 authored by Sean Leavey's avatar Sean Leavey
Browse files

Allow empty YAML files

parent 7f862e94
No related branches found
No related tags found
1 merge request!71Allow empty YAML files
Pipeline #113065 passed
......@@ -294,7 +294,7 @@ class Struct(object):
"""Create Struct from YAML string.
"""
d = yaml.load(y, Loader=yaml_loader)
d = yaml.load(y, Loader=yaml_loader) or {}
return cls(d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment