Skip to content

Commit

Permalink
fix the encoding problem for subprocess.check_output
Browse files Browse the repository at this point in the history
  • Loading branch information
stmoon authored and TSC21 committed Feb 9, 2020
1 parent 6c76f99 commit 8b273b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msg/tools/generate_microRTPS_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def check_rtps_id_uniqueness(classifier):
ros2_distro = ""
try:
rosversion_out = subprocess.check_output(["rosversion", "-d"])
rosversion_out = rosversion_out.rstrip()
rosversion_out = rosversion_out.rstrip().decode('utf-8')
if rosversion_out not in ["<unknown>", "kinetic", "lunar", "melodic"]:
ros2_distro = rosversion_out
except OSError as e:
Expand Down

0 comments on commit 8b273b4

Please sign in to comment.