From dc212f516af014bb1842d80f666ffc97feb5b9d8 Mon Sep 17 00:00:00 2001 From: jbruce12000 Date: Sat, 26 Nov 2022 17:15:56 -0500 Subject: [PATCH] fix inheritance of tv error --- lib/oven.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oven.py b/lib/oven.py index 7c74417..c055e03 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -270,7 +270,7 @@ class Max31855_Error(ThermocoupleError): "short circuit to ground" : "short circuit", "short circuit to power" : "short circuit", } - super().__init__(self.message) + super().__init__(message) class Max31856_Error(ThermocoupleError): def __init__(self, message): @@ -285,7 +285,7 @@ class Max31856_Error(ThermocoupleError): "voltage" : "voltage too high or low", "open_tc" : "not connected" } - super().__init__(self.message) + super().__init__(message) class Max31856(TempSensorReal): '''each subclass expected to handle errors and get temperature'''