Skip to content

Commit

Permalink
Handle nameless nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 15, 2024
1 parent 07f22a0 commit 1627610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildmap/plugins/powerlabels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def run(self):

# draw each node as a label
for node in self.get_distros():
if node.name is None:
self.log.warn("Skipping label for node %s with no name", node.fid)
continue
sheet.add_label(node)

# save it
Expand Down

0 comments on commit 1627610

Please sign in to comment.