heaters: Fix typo - config.config_error() instead config.error()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -259,7 +259,8 @@ class PrinterHeaters:
|
|||||||
try:
|
try:
|
||||||
dconfig = pconfig.read_config(filename)
|
dconfig = pconfig.read_config(filename)
|
||||||
except Exception:
|
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(''):
|
for c in dconfig.get_prefix_sections(''):
|
||||||
self.printer.load_object(dconfig, c.get_name())
|
self.printer.load_object(dconfig, c.get_name())
|
||||||
def add_sensor_factory(self, sensor_type, sensor_factory):
|
def add_sensor_factory(self, sensor_type, sensor_factory):
|
||||||
|
|||||||
Reference in New Issue
Block a user