summaryrefslogtreecommitdiff
path: root/gerbonara/cad/kicad/pcb.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2024-07-18 11:35:44 +0200
committerjaseg <git@jaseg.de>2024-07-18 11:36:16 +0200
commit344825c5da3e2a187ec8aae193a4edaf48ae21f9 (patch)
treeb2e006cc562fabad63d7cb2f79f3152d997068a2 /gerbonara/cad/kicad/pcb.py
parentf1b3ab5e7223d76634878e1231ae0906b5bdbb36 (diff)
downloadgerbonara-344825c5da3e2a187ec8aae193a4edaf48ae21f9.tar.gz
gerbonara-344825c5da3e2a187ec8aae193a4edaf48ae21f9.tar.bz2
gerbonara-344825c5da3e2a187ec8aae193a4edaf48ae21f9.zip
kicad: Fix bug when searching pads with empty nets
Diffstat (limited to 'gerbonara/cad/kicad/pcb.py')
-rw-r--r--gerbonara/cad/kicad/pcb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerbonara/cad/kicad/pcb.py b/gerbonara/cad/kicad/pcb.py
index e3c9ede..90845e6 100644
--- a/gerbonara/cad/kicad/pcb.py
+++ b/gerbonara/cad/kicad/pcb.py
@@ -672,7 +672,7 @@ class Board:
continue
if reference and not match_filter(reference, fp.properties.get('reference', '')):
continue
- if net and not any(match_filter(net, pad.net.name) for pad in fp.pads):
+ if net and not any(pad.net and match_filter(net, pad.net.name) for pad in fp.pads):
continue
if sheetname and not match_filter(sheetname, fp.sheetname):
continue