From 665323eb29c7794776ce64a17786032690ef3a2a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 16 Dec 2019 19:16:58 -0500 Subject: heater: Use printer.command_error() instead of internal heater.error() Use the more standard command_error to report invalid temperature requests. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index b228c499..2406a67c 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -418,10 +418,7 @@ class GCodeParser: self.respond_error("Heater not configured") return print_time = self.toolhead.get_last_move_time() - try: - heater.set_temp(print_time, temp) - except heater.error as e: - raise self.error(str(e)) + heater.set_temp(print_time, temp) if wait and temp: self.bg_temp(heater) # G-Code special command handlers -- cgit v1.2.3-70-g09d2