From 6de2b4a057359057925c8daf95edc2039e3fb97b Mon Sep 17 00:00:00 2001 From: 7iwind <7wind@7iwind.cn> Date: Wed, 12 Aug 2026 10:27:38 +0800 Subject: [PATCH] lceda_step: fall back to using footprint 3D model UUID directly when component lookup fails --- lceda_step.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lceda_step.py b/lceda_step.py index ddc0678..d6a2f77 100644 --- a/lceda_step.py +++ b/lceda_step.py @@ -130,14 +130,14 @@ def main(): print(" {}: {}".format(code, e)) for uuid in uuids: + name, model, owner = uuid, uuid, "" try: comp = get_component(uuid, args.cookie) + name = comp.get("display_title") or comp.get("title") or uuid + model = comp.get("3d_model_uuid") + owner = comp.get("path", "") except Exception as e: - print("{}: {}".format(uuid, e)) - continue - name = comp.get("display_title") or comp.get("title") or uuid - model = comp.get("3d_model_uuid") - owner = comp.get("path", "") + print("{}: component lookup failed ({}), trying uuid as model uuid".format(uuid, e)) print("{} | {} | model={} | owner={}".format(uuid, name, model, owner)) if not model: print(" no 3D model available")