From 16276104ba71854d500befba3d03319329a6c945 Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Wed, 15 May 2024 18:08:46 +0100 Subject: [PATCH] Handle nameless nodes --- buildmap/plugins/powerlabels/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildmap/plugins/powerlabels/__init__.py b/buildmap/plugins/powerlabels/__init__.py index 8467791..fff72a6 100644 --- a/buildmap/plugins/powerlabels/__init__.py +++ b/buildmap/plugins/powerlabels/__init__.py @@ -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