Fixed issue after 19345ff

It wasn't considering that EnumerationReference could be None
This commit is contained in:
Andrej730
2023-10-16 15:24:02 +05:00
parent fb9cf75412
commit ce8598a0b4
@@ -69,7 +69,7 @@ class Usecase:
continue
if prop.is_a("IfcPropertyEnumeratedValue"):
enumeration = prop.EnumerationReference
if self.file.get_total_inverses(enumeration) == 1:
if enumeration and self.file.get_total_inverses(enumeration) == 1:
self.file.remove(enumeration)
self.file.remove(prop)
self.file.remove(self.settings["pset"])