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")