Skip to content

Commit 571be59

Browse files
committed
Fix missing footprint DRC exclusion
1 parent a8d1c05 commit 571be59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kikit/drc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class DrcExclusion:
6161
objects: List[pcbnew.BOARD_ITEM] = field(default_factory=list)
6262

6363
def eqRepr(self) -> Tuple[str, Union[Tuple[str, str], str]]:
64+
if len(self.objects) == 0:
65+
return (self.type, ())
6466
if len(self.objects) == 1:
6567
objRepr = str(self.objects[0].m_Uuid.AsString()) if isinstance(self.objects[0], pcbnew.BOARD_ITEM) else self.objects[0]
6668
return (self.type, objRepr)

0 commit comments

Comments
 (0)