Use of yaml.SafeLoader instead of yaml.Loader
[osm/N2VC.git] / n2vc / utils.py
index 286f0fc..a4a6a23 100644 (file)
@@ -149,7 +149,7 @@ def obj_to_dict(obj: object) -> dict:
     # convert obj to yaml
     yaml_text = obj_to_yaml(obj)
     # parse to dict
-    return yaml.load(yaml_text, Loader=yaml.Loader)
+    return yaml.load(yaml_text, Loader=yaml.SafeLoader)
 
 
 def get_ee_id_components(ee_id: str) -> Tuple[str, str, str]: