From f6f555387e71e9806e23a57c52067add52143bfa Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 18 Oct 2025 21:31:55 -0600 Subject: [PATCH] Fix timeline attribute assumption (#20555) --- frigate/timeline.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frigate/timeline.py b/frigate/timeline.py index f8d341660..8e6aedc67 100644 --- a/frigate/timeline.py +++ b/frigate/timeline.py @@ -142,11 +142,14 @@ class TimelineProcessor(threading.Thread): timeline_entry[Timeline.data]["attribute"] = list( event_data["attributes"].keys() )[0] - timeline_entry[Timeline.data]["attribute_box"] = to_relative_box( - camera_config.detect.width, - camera_config.detect.height, - event_data["current_attributes"][0]["box"], - ) + + if len(event_data["current_attributes"]) > 0: + timeline_entry[Timeline.data]["attribute_box"] = to_relative_box( + camera_config.detect.width, + camera_config.detect.height, + event_data["current_attributes"][0]["box"], + ) + save = True elif event_type == EventStateEnum.end: timeline_entry[Timeline.class_type] = "gone"