From 3d43bc98c1264e6b3ce01a36f15bbc8e2fc71c38 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Thu, 12 Nov 2020 08:19:58 +0100 Subject: [PATCH] Implement change suggested by @kvid --- src/wireviz/Harness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index af6d7761..b1add9bf 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -214,7 +214,7 @@ def create_graph(self) -> Graph: if colorstr: wireinfo.append(colorstr) if cable.wirelabels: - wireinfo.append(wirelabel if wirelabel else '') + wireinfo.append(wirelabel if wirelabel is not None else '') wirehtml.append(f' {":".join(wireinfo)}') wirehtml.append(f' ')