From 148ff60aa5a211292661e16ddba0f6fced85f372 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 20 May 2019 16:04:15 +0200 Subject: make_bom: Skipping fields without values. --- src/ee/kicad/make_bom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ee/kicad/make_bom.py b/src/ee/kicad/make_bom.py index 13b2157..5242832 100644 --- a/src/ee/kicad/make_bom.py +++ b/src/ee/kicad/make_bom.py @@ -56,7 +56,8 @@ def work(sch, out: Path, new_mode, pretty): part.facts.add(sch_fact_types.footprint_name, footprint) for f in c.named_fields: - part.facts.add(sch_fact_types.field, "{}:{}".format(f.name, f.value)) + if f.value is not None and len(f.value): + part.facts.add(sch_fact_types.field, "{}:{}".format(f.name, f.value)) parts.add_entry(part, True) -- cgit v1.2.3