From 354bd52e5cde6606961c8c25f97bee402b6f611b Mon Sep 17 00:00:00 2001 From: Michel Hidalgo Date: Thu, 19 Oct 2023 17:04:45 -0300 Subject: [PATCH] Guard against empty string namespaces Signed-off-by: Michel Hidalgo --- bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py b/bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py index 8a590ec..b27c38b 100644 --- a/bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py +++ b/bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py @@ -315,7 +315,7 @@ def load( raise RuntimeError("scope has not been entered (or was already exited)") if self._executor is None: raise RuntimeError("scope executor has not been set") - if namespace is not None: + if namespace: namespace = namespace_with(self._namespace, namespace) else: namespace = self._namespace