generate_microRTPS_bridge: fix fastrtpsgen version check handler

This commit is contained in:
TSC21
2019-10-14 21:23:27 +01:00
committed by Nuno Marques
parent c51475640e
commit f91770f9cd
+3 -2
View File
@@ -251,9 +251,10 @@ if(os.path.exists(fastrtpsgen_path)):
except OSError: except OSError:
raise raise
if fastrtpsgen_version_out.isdigit(): try:
fastrtpsgen_version = float(fastrtpsgen_version_out) fastrtpsgen_version = float(fastrtpsgen_version_out)
else: except ValueError:
print("'fastrtpsgen -version' returned None. Hardsetting version to 1.0")
fastrtpsgen_version = 1.0 fastrtpsgen_version = 1.0
else: else:
raise Exception( raise Exception(