Skip to content

Commit

Permalink
Extras: fix bed_mesh error when no printer is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Nov 8, 2024
1 parent 37ff1c9 commit f90c027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion klippy/ratos.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def register_handler(self):
def _connect(self):
self.v_sd = self.printer.lookup_object('virtual_sdcard', None)
self.sdcard_dirname = self.v_sd.sdcard_dirname
self.bed_mesh = self.printer.lookup_object('bed_mesh')
if self.config.has_section("bed_mesh"):
self.bed_mesh = self.printer.lookup_object('bed_mesh')
self.dual_carriage = None
if self.config.has_section("dual_carriage"):
self.dual_carriage = self.printer.lookup_object("dual_carriage", None)
Expand Down

0 comments on commit f90c027

Please sign in to comment.