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

Refresh all printers even on error

parent e39769fe
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -866,11 +866,15 @@ POST /slicer/usage

pull_printers()


def update_printer(p):
    if p.printer_model() == "octoprint":
        p.cycle_print()

def update_printers():
    log.info("Refreshing printers")
    for p in get_printers():
        if p.printer_model() == "octoprint":
            p.cycle_print()
        update_printer(p)

def recurrent_printer_update():
    while True: