Manage error when no Printers are found

This commit is contained in:
n07070
2026-06-12 16:35:38 +02:00
parent af15ed8754
commit 65e4a2ad9c
2 changed files with 6 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class PrintWorker(threading.Thread):
"Ready" if self.printer.ready else "Not ready",
)
except Exception as e:
self.app.logger.error(str(e))
self.app.logger.error("No printer detected" + str(e))
self.printer = None
if self.state != "idle":