Skip to content

Commit

Permalink
generate_microRTPS_bridge: fix fastrtpsgen version check handler
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed Oct 14, 2019
1 parent c514756 commit f91770f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions msg/tools/generate_microRTPS_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ def check_rtps_id_uniqueness(classifier):
except OSError:
raise

if fastrtpsgen_version_out.isdigit():
try:
fastrtpsgen_version = float(fastrtpsgen_version_out)
else:
except ValueError:
print("'fastrtpsgen -version' returned None. Hardsetting version to 1.0")
fastrtpsgen_version = 1.0
else:
raise Exception(
Expand Down

0 comments on commit f91770f

Please sign in to comment.