aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-07 16:03:37 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-07 16:03:37 +0200
commiteffb3470dd1be3a0dd1eaa83991cef45b5e08dab (patch)
treeb419ff6cf1fea59e86311a9969c5ea66e27ad204
parent0a30be53afe3f11a6b809642abe51524a91b9e9c (diff)
downloadee-python-effb3470dd1be3a0dd1eaa83991cef45b5e08dab.tar.gz
ee-python-effb3470dd1be3a0dd1eaa83991cef45b5e08dab.tar.bz2
ee-python-effb3470dd1be3a0dd1eaa83991cef45b5e08dab.tar.xz
ee-python-effb3470dd1be3a0dd1eaa83991cef45b5e08dab.zip
kicad-to-bom: Checking if the component has a reference before using it.
-rw-r--r--src/ee/kicad/to_bom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ee/kicad/to_bom.py b/src/ee/kicad/to_bom.py
index 354d9ba..6cce5a5 100644
--- a/src/ee/kicad/to_bom.py
+++ b/src/ee/kicad/to_bom.py
@@ -44,7 +44,7 @@ def to_bom(schematic: Union[Schematic, Schematics], require_ref=True) -> Iterabl
if require_ref and not c.has_ref_num:
continue
- if c.ref_type in bad_ref_types:
+ if c.has_ref_num and c.ref_type in bad_ref_types:
continue
cs.append(c)