Skip to content

Commit

Permalink
Resolve libyaml warning when loading parameters from file (#161) (#204)
Browse files Browse the repository at this point in the history
Fixes #160

Signed-off-by: Dereck Wonnacott <dereck.wonnacott@havalus.com>

Co-authored-by: Dereck Wonnacott <44446780+dawonn-haval@users.noreply.github.com>
  • Loading branch information
jacobperron and dawonn-haval committed Nov 20, 2020
1 parent 90d14c3 commit be1a99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/utilities/to_parameters_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def to_parameters_list(
if isinstance(params_set_or_path, pathlib.Path):
with open(str(params_set_or_path), 'r') as f:
params_set = evaluate_parameter_dict(
context, normalize_parameter_dict(yaml.load(f))
context, normalize_parameter_dict(yaml.safe_load(f))
)
else:
params_set = params_set_or_path
Expand Down

0 comments on commit be1a99c

Please sign in to comment.