Skip to content

Commit

Permalink
Guard against empty string namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
mhidalgo-bdai committed Oct 19, 2023
1 parent 4eb4868 commit 354bd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bdai_ros2_wrappers/bdai_ros2_wrappers/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 354bd52

Please sign in to comment.