safe_load doesnt have parameter Loader
Change-Id: I61024dcd098c68600433ef8af2e815456a7cc6ac
This commit is contained in:
parent
96a46ac840
commit
975e663b9e
@ -16,7 +16,7 @@ import yaml
|
||||
|
||||
def load(stream):
|
||||
try:
|
||||
yaml_dict = yaml.safe_load(stream, Loader=yaml.BaseLoader)
|
||||
yaml_dict = yaml.load(stream, Loader=yaml.BaseLoader)
|
||||
except yaml.YAMLError as exc:
|
||||
msg = 'An error occurred during YAML parsing.'
|
||||
if hasattr(exc, 'problem_mark'):
|
||||
|
Loading…
Reference in New Issue
Block a user