Verified Commit 39267c70 authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Fix use self.current_print before it is set

parent bab8da23
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ class OctoPrinter(PrinterBase):
        gcode_path = os.path.join(FILE_SAVE_PATH, print_obj.gcode)
        with open(gcode_path) as fh:   

            self.log(f"[+] Starting print #{self.current_print.id} ({self.current_print.title})")
            self.log(f"[+] Starting print #{print_obj.id} ({print_obj.title})")
            self._refresh_ready_state()

            self.log(f"[+] Deleting file on printer...")