diff --git a/src/ifc5d/ifc5d/qto.py b/src/ifc5d/ifc5d/qto.py index 5f54dc2481..f7c8febcc0 100644 --- a/src/ifc5d/ifc5d/qto.py +++ b/src/ifc5d/ifc5d/qto.py @@ -265,9 +265,10 @@ class Blender: continue if not (formula_function := formula_functions.get(formula)): formula_function = formula_functions[formula] = getattr(calculator, formula) - results[element][name][quantity] = unit_converter.convert( - formula_function(obj), Blender.functions[formula].measure - ) + if (value := formula_function(obj)) is not None: + results[element][name][quantity] = unit_converter.convert( + value, Blender.functions[formula].measure + ) calculators = {"Blender": Blender, "IfcOpenShell": IfcOpenShell}