Fix: Tolerate missing?
This commit is contained in:
parent
3065501f97
commit
a6ee0440d0
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def poll_printers(app: App, db: Db) -> None:
|
||||||
"reference": snapshots[0],
|
"reference": snapshots[0],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
similarity = status["similarity"] ** 3 # Cube it
|
similarity = status.get("similarity", 0.0) ** 3 # Cube it
|
||||||
return similarity > 0.9
|
return similarity > 0.9
|
||||||
|
|
||||||
printer_job = {}
|
printer_job = {}
|
||||||
|
|
Loading…
Reference in a new issue