aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ee/kicad/make_bom.py3
1 files changed, 2 insertions, 1 deletions
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)