From 9286de4813f204645241741157b4be5f6abd1d75 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 4 Jul 2021 19:57:09 +1000 Subject: [PATCH] Minor fix. See #1547. --- .../ifcopenshell/api/owner/create_owner_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py b/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py index fb5561390a..ad99aa9077 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py +++ b/src/ifcopenshell-python/ifcopenshell/api/owner/create_owner_history.py @@ -13,11 +13,11 @@ class Usecase: def execute(self): self.settings["person"] = ifcopenshell.api.owner.settings.get_person(self.file) self.settings["organisation"] = ifcopenshell.api.owner.settings.get_organisation(self.file) + application = ifcopenshell.api.owner.settings.get_application(self.file) if self.file.schema != "IFC2X3": - if not self.settings["person"] or not self.settings["organisation"]: + if not self.settings["person"] or not self.settings["organisation"] or not application: return user = self.get_user() - application = ifcopenshell.api.owner.settings.get_application(self.file) return self.file.create_entity( "IfcOwnerHistory", **{