Skip to content

Commit 07c5216

Browse files
Resolve libyaml warning when loading parameters from file (#161) (#202)
Fixes #160 Signed-off-by: Dereck Wonnacott <[email protected]> Co-authored-by: Dereck Wonnacott <[email protected]>
1 parent ce19fed commit 07c5216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

launch_ros/launch_ros/utilities/to_parameters_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def to_parameters_list(
4646
if isinstance(params_set_or_path, pathlib.Path):
4747
with open(str(params_set_or_path), 'r') as f:
4848
params_set = evaluate_parameter_dict(
49-
context, normalize_parameter_dict(yaml.load(f))
49+
context, normalize_parameter_dict(yaml.safe_load(f))
5050
)
5151
else:
5252
params_set = params_set_or_path

0 commit comments

Comments
 (0)