[Fem] fix femtest failure with yaml.load
Solves an issue with using an outdated call to yaml.load as described in https://forum.freecadweb.org/viewtopic.php?f=10&t=57617 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
This commit is contained in:
committed by
Bernd Hahnebach
parent
9a5eefaec8
commit
20e756306d
@@ -162,7 +162,7 @@ def read(
|
||||
or fileExtension.lower() == ".yml"
|
||||
) and has_yaml:
|
||||
fp = pyopen(fileString, "rt")
|
||||
raw_mesh_data = yaml.load(fp)
|
||||
raw_mesh_data = yaml.load(fp, Loader=yaml.SafeLoader)
|
||||
fp.close()
|
||||
else:
|
||||
Console.PrintError(
|
||||
|
||||
Reference in New Issue
Block a user