From 915f59aa86c04a25df154163e18c31466b8264f9 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 10 Jul 2023 18:58:44 -0600 Subject: [PATCH] Fix / cleanup --- frigate/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 50c7aba1c..08201b177 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -386,13 +386,13 @@ def set_sub_label(id): 400, ) - if new_score > 1.0 or new_score < 0: + if new_score is not None and (new_score > 1.0 or new_score < 0): return make_response( jsonify( { "success": False, "message": new_score - + " does not fit within the expected bounds 0 < score < 1.0", + + " does not fit within the expected bounds 0 <= score <= 1.0", } ), 400,