From 12d2137b8f73eac1ed586178236d8bcdb2fa436d Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 15 Jun 2022 19:30:50 -0600 Subject: [PATCH] Fix bug caught in tests --- frigate/http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index e24d37b0b..323e8b476 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -256,7 +256,10 @@ def get_sub_labels(): ) sub_labels = [e.sub_label for e in events] - sub_labels.remove(None) + + if None in sub_labels: + sub_labels.remove(None) + return jsonify(sub_labels)