mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +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):
|
def get_drawing_metadata(cls, drawing):
|
||||||
return [
|
return [
|
||||||
v.strip()
|
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
|
if v
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user