We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09d030 commit 1f4df32Copy full SHA for 1f4df32
src/ifcopenshell-python/ifcopenshell/util/element.py
@@ -45,7 +45,7 @@ def get_properties(properties):
45
results = {}
46
for prop in properties:
47
if prop.is_a("IfcPropertySingleValue"):
48
- results[prop.Name] = prop.NominalValue.wrappedValue
+ results[prop.Name] = prop.NominalValue.wrappedValue if prop.NominalValue else None
49
elif prop.is_a("IfcComplexProperty"):
50
data = prop.get_info()
51
data["properties"] = get_properties(prop.HasProperties)
0 commit comments