mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fixed issue after 19345ff
It wasn't considering that EnumerationReference could be None
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user