Sigh HTTP 200 failures
This commit is contained in:
parent
a6ee0440d0
commit
a815bd6763
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ def poll_printers(app: App, db: Db) -> None:
|
||||||
"reference": snapshots[0],
|
"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
|
similarity = status.get("similarity", 0.0) ** 3 # Cube it
|
||||||
return similarity > 0.9
|
return similarity > 0.9
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue