Sigh HTTP 200 failures

This commit is contained in:
Reid 'arrdem' McKenzie 2024-09-01 14:08:52 -06:00
parent a6ee0440d0
commit a815bd6763

View file

@ -87,6 +87,11 @@ def poll_printers(app: App, db: Db) -> None:
"reference": snapshots[0],
},
)
if "error" in status:
log.error(f"Printer {printer.id} failed to report bed readiness with {status!r}")
return False
similarity = status.get("similarity", 0.0) ** 3 # Cube it
return similarity > 0.9