See #4389. Accommodate null metadata.

This commit is contained in:
Dion Moult
2024-03-04 17:50:47 +11:00
parent c50ac3db4f
commit 61403fcf42
+1 -1
View File
@@ -1504,7 +1504,7 @@ class Drawing(blenderbim.core.tool.Drawing):
def get_drawing_metadata(cls, drawing):
return [
v.strip()
for v in ifcopenshell.util.element.get_psets(drawing)["EPset_Drawing"].get("Metadata", "").split(",")
for v in (ifcopenshell.util.element.get_psets(drawing)["EPset_Drawing"].get("Metadata", "") or "").split(",")
if v
]