Skip to content

Commit

Permalink
fix: return text value to avoid exception (#338)
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Nishimatsu <[email protected]>
  • Loading branch information
wep21 authored Dec 7, 2022
1 parent f142fd3 commit af784b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch_ros/launch_ros/substitutions/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def perform(self, context: LaunchContext) -> Text:
for param in params_container:
if isinstance(param, tuple):
if param[0] == name:
return param[1]
return str(param[1])

if self.__default is None:
raise SubstitutionFailure("parameter '{}' not found".format(name))
Expand Down

0 comments on commit af784b2

Please sign in to comment.