Skip to content

Commit

Permalink
ignore empty or None node names
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Mar 23, 2018
1 parent ffcacbb commit 238cbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2node/ros2node/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_node_names(*, node, include_hidden_nodes=False):
if not include_hidden_nodes:
node_names = [
n for n in node_names
if not n.startswith(HIDDEN_NODE_PREFIX)]
if n and not n.startswith(HIDDEN_NODE_PREFIX)]
return node_names


Expand Down

0 comments on commit 238cbf9

Please sign in to comment.