kicad: Fix bug when searching pads with empty nets

This commit is contained in:
jaseg 2024-07-18 11:35:44 +02:00
parent f1b3ab5e72
commit 344825c5da

View file

@ -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