diff --git a/capella_ros_tools/importer.py b/capella_ros_tools/importer.py index 24b27f8..4516772 100644 --- a/capella_ros_tools/importer.py +++ b/capella_ros_tools/importer.py @@ -158,9 +158,11 @@ def _convert_class( "find": { "name": msg_def.name, }, - "set": { - "description": msg_def.description, - }, + "set": ( + {"description": msg_def.description} + if msg_def.description + else {} + ), "sync": { "properties": props, },