Skip to content

Commit

Permalink
[Fem] fix femtest failure with yaml.load
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
waebbl authored and berndhahnebach committed May 6, 2021
1 parent 9a5eefa commit 20e7563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Fem/feminout/importYamlJsonMesh.py
Expand Up @@ -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(
Expand Down

0 comments on commit 20e7563

Please sign in to comment.