From 5aebd43c4b34bf04083153036fc463195d6b49f6 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 22 Nov 2023 18:02:18 +0000 Subject: [PATCH] added ValueError for no labour adjustment factor found --- recommendations/Costs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recommendations/Costs.py b/recommendations/Costs.py index fafc15aa..c855e690 100644 --- a/recommendations/Costs.py +++ b/recommendations/Costs.py @@ -91,6 +91,9 @@ class Costs: x["Region"] == self.county ][0] + if not self.labour_adjustment_factor: + raise ValueError("Labour adjustment factor not found") + def cavity_wall_insulation(self, material): """ Calculates the total cost for cavity wall insulation based on material and labor costs,