mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
See #4389. Accommodate null metadata.
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user