Bouni / kicad-jlcpcb-tools

Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: 'FOOTPRINT' object is not iterable

Bouni opened this issue · comments

@chmorgan I just realized your PR #398 breaks the plugin!

No CPL or BOM is generated and the console shows TypeError: 'FOOTPRINT' object is not iterable.

Thats because you replaced the helper function with for fp in board.FindFootprintByReference(part[0]): here
This does return a single FOOTPRINT instead of a list of FOOTPRINT.
I do not remember why the helper returned a list to be honest but I also wonder why this worked for you in the first place!?