microRTPS: templates: only decode ros2_distro when possible and nedeed

This commit is contained in:
TSC21
2019-10-19 20:05:31 +01:00
committed by Nuno Marques
parent 981f8d5d90
commit 2930b55732
5 changed files with 21 additions and 5 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ import gencpp
from px_generate_uorb_topic_helper import * # this is in Tools/
topic = alias if alias else spec.short_name
ros2_distro = ros2_distro.decode("utf-8")
try:
ros2_distro = ros2_distro.decode("utf-8")
except AttributeError:
pass
}@
/****************************************************************************
*