Fixed missing check for kicad_pcb/setup/stackup iterator

This commit is contained in:
Salvador E. Tropea 2022-01-16 15:19:04 -03:00
parent 33da0f9e87
commit 4d6b47edd0
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ class Globals(FiltersOptions):
logger.debug("- Failed to load the PCB "+str(e))
if pcb is None:
return
sp = next(sexp_iter(pcb, 'kicad_pcb/setup/stackup'), None)
iter = sexp_iter(pcb, 'kicad_pcb/setup/stackup')
if iter is None:
return
sp = next(iter, None)
if sp is None:
return
logger.debug("- Found stack-up information")