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 64454a001f
commit 4cf6d65e1a
@@ -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"])