mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix error fetching the description of a nameless attribute
This commit is contained in:
@@ -121,6 +121,8 @@ def add_attribute_enum_items_descriptions(attribute_blender, enum_items):
|
||||
|
||||
|
||||
def add_attribute_description(attribute_blender):
|
||||
if not attribute_blender.name:
|
||||
return
|
||||
description = get_attribute_description(attribute_blender.ifc_class, attribute_blender.name)
|
||||
if description:
|
||||
attribute_blender.description = description
|
||||
|
||||
Reference in New Issue
Block a user