fix issue adding classification failing to use a None value for the date

This commit is contained in:
Andrej730
2024-05-15 16:01:06 +05:00
parent 335e2b7a78
commit c2049246cd
@@ -110,7 +110,9 @@ class Usecase:
"IfcCalendarDate", **ifcopenshell.util.date.datetime2ifc(edition_date, "IfcCalendarDate")
)
else:
result.EditionDate = ifcopenshell.util.date.datetime2ifc(edition_date, "IfcDate")
if edition_date:
edition_date = ifcopenshell.util.date.datetime2ifc(edition_date, "IfcDate")
result.EditionDate = edition_date
self.relate_to_project(result)