mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
generate_microRTPS_bridge: fix fastrtpsgen version check handler
This commit is contained in:
@@ -251,9 +251,10 @@ if(os.path.exists(fastrtpsgen_path)):
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user