added ValueError for no labour adjustment factor found

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-22 18:02:18 +00:00
parent 20bc4cab0e
commit 5aebd43c4b

View file

@ -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,