From 624f7ff68f01387fdfa7a73ba858bab3679ffb46 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 31 Jan 2023 13:31:59 -0300 Subject: [PATCH] [3D download] Fixed cases where we have no components from the SCH --- kibot/out_base_3d.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kibot/out_base_3d.py b/kibot/out_base_3d.py index a52872b9..ab09790d 100644 --- a/kibot/out_base_3d.py +++ b/kibot/out_base_3d.py @@ -187,6 +187,8 @@ class Base3DOptions(VariantOptions): if all_comps is None and GS.sch_file: GS.load_sch() all_comps = GS.sch.get_components() + if all_comps is None: + all_comps = [] all_comps_hash = {c.ref: c for c in all_comps} # Find the LCSC field lcsc_field = self.solve_field_name('_field_lcsc_part', empty_when_none=True)