diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 16:04:15 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 16:04:15 +0200 |
commit | 148ff60aa5a211292661e16ddba0f6fced85f372 (patch) | |
tree | 76b5722b3fda11538d93702d3424efbb9088ab03 | |
parent | 9eba62ef1d6b4896de693976116f69a9692332d9 (diff) | |
download | ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.gz ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.bz2 ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.tar.xz ee-python-148ff60aa5a211292661e16ddba0f6fced85f372.zip |
make_bom: Skipping fields without values.
-rw-r--r-- | src/ee/kicad/make_bom.py | 3 |
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) |