Allow empty references in the generic filter

Related to #248
This commit is contained in:
Salvador E. Tropea 2022-09-16 06:17:34 -03:00
parent 4f54712a94
commit 0cf25c3295
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class Generic(BaseFilter): # noqa: F821
if self.exclude_empty_val and (value == '' or value == '~'):
return exclude
# Exclude all ref == #*
if self.exclude_all_hash_ref and comp.ref[0] == '#':
if self.exclude_all_hash_ref and comp.ref and comp.ref[0] == '#':
return exclude
# KiCad 5 PCB classification
if self.exclude_virtual and comp.virtual: