Skip to content

Commit

Permalink
added none check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Nov 25, 2024
1 parent 1a18466 commit 3c4d97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/heaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ def set_temperature(self, heater, temp, wait=False):
if not mcu_name.startswith("mcu"):
mcu_name = "mcu " + mcu_name
mcu_object = self.printer.lookup_object(mcu_name, None)
if not mcu_object.non_critical_disconnected:
if mcu_object is not None and not mcu_object.non_critical_disconnected:
heater.notify_disabled(mcu_name)
return
toolhead = self.printer.lookup_object("toolhead")
Expand Down

0 comments on commit 3c4d97c

Please sign in to comment.