Skip to content

Commit

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

Signed-off-by: Dereck Wonnacott <dereck.wonnacott@havalus.com>
  • Loading branch information
dawonn-haval committed Jul 8, 2020
1 parent 54ab32d commit c79f526
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 c79f526

Please sign in to comment.