diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-12-16 19:16:58 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-12-16 19:16:58 -0500 |
commit | 665323eb29c7794776ce64a17786032690ef3a2a (patch) | |
tree | ae19bd7bff5cb564c5406d1d9a3b92bfe04d2612 /klippy/gcode.py | |
parent | 254789f4c570426f589e3cf966dac12a0600b6a5 (diff) | |
download | kutter-665323eb29c7794776ce64a17786032690ef3a2a.tar.gz kutter-665323eb29c7794776ce64a17786032690ef3a2a.tar.xz kutter-665323eb29c7794776ce64a17786032690ef3a2a.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 5 |
1 files changed, 1 insertions, 4 deletions
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 |