Skip to content

Commit

Permalink
Do not handle object if data is None
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Sep 19, 2024
1 parent 4515eb4 commit 6be1b18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frigate/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def run(self) -> None:
continue

if input_type == EventTypeEnum.tracked_object:
self.handle_object_detection(
camera, event_type, prev_event_data, event_data
)
if prev_event_data is not None and event_data is not None:
self.handle_object_detection(
camera, event_type, prev_event_data, event_data
)
elif input_type == EventTypeEnum.api:
self.handle_api_entry(camera, event_type, event_data)

Expand Down

0 comments on commit 6be1b18

Please sign in to comment.