From 344825c5da3e2a187ec8aae193a4edaf48ae21f9 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 18 Jul 2024 11:35:44 +0200 Subject: kicad: Fix bug when searching pads with empty nets --- gerbonara/cad/kicad/pcb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara') 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 -- cgit