From 1ecb25684eff9d4d27c1007f9da3b6cae4ed2cd4 Mon Sep 17 00:00:00 2001 From: Totally a booplicate <53382877+Booplicate@users.noreply.github.com> Date: Sun, 4 Jun 2023 16:15:23 +0300 Subject: [PATCH] fix missing else clause --- src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py index a97c6a26ee..6a1d5c838e 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/pset/edit_pset.py @@ -335,7 +335,8 @@ class Usecase: raise NotImplementedError(f"Template type '{pset_template.TemplateType}' is not supported yet") - raise NotImplementedError(f"No template found for property '{name}'") + else: + raise NotImplementedError(f"No template found for property '{name}'") else: primary_measure_type = self.get_primary_measure_type(name, new_value=value)