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)