diff --git a/src/zenml/client.py b/src/zenml/client.py index e57b41884a1..37ba6ef2d97 100644 --- a/src/zenml/client.py +++ b/src/zenml/client.py @@ -5393,6 +5393,8 @@ def _get_entity_by_id_or_name_or_prefix( entity_label = get_method.__name__.replace("get_", "") + "s" formatted_entity_items = [ f"- {item.name}: (id: {item.id})\n" + if hasattr(item, "name") + else f"- {item.id}\n" for item in entity.items ] raise ZenKeyError(