diff --git a/panels/move.py b/panels/move.py index 36ebc308..7f7c857f 100644 --- a/panels/move.py +++ b/panels/move.py @@ -65,7 +65,11 @@ class Panel(ScreenPanel): zm = "z-" zp = "z+" - rotation = self.ks_printer_cfg.getint("screw_rotation", 0) + rotation = ( + 0 + if self.ks_printer_cfg is None + else self.ks_printer_cfg.getint("screw_rotation", 0) + ) if rotation == 90: xm, yp, xp, ym = ym, xm, yp, xp elif rotation == 180: