aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-09-25 23:20:13 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-09-25 23:25:59 -0400
commitef75346861fdf94d952a4e887fb843d215b00631 (patch)
tree25ea62a512bba4daebe157fe291cba15a9d97b3e
parent064eee6859e16589235fad7e425b51ade408e9bd (diff)
downloadkutter-ef75346861fdf94d952a4e887fb843d215b00631.tar.gz
kutter-ef75346861fdf94d952a4e887fb843d215b00631.tar.xz
kutter-ef75346861fdf94d952a4e887fb843d215b00631.zip
heaters: Fix typo - config.config_error() instead config.error()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/heaters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 54805013..7cb663a4 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -259,7 +259,8 @@ class PrinterHeaters:
try:
dconfig = pconfig.read_config(filename)
except Exception:
- raise config.config_error("Cannot load config '%s'" % (filename,))
+ logging.exception("Unable to load temperature_sensors.cfg")
+ raise config.error("Cannot load config '%s'" % (filename,))
for c in dconfig.get_prefix_sections(''):
self.printer.load_object(dconfig, c.get_name())
def add_sensor_factory(self, sensor_type, sensor_factory):