Do not handle object if data is None (#13830)

This commit is contained in:
Nicolas Mowen 2024-09-19 07:51:07 -06:00 committed by GitHub
parent ddf3a687a3
commit 7c63cb5bca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,6 +44,7 @@ class TimelineProcessor(threading.Thread):
continue
if input_type == EventTypeEnum.tracked_object:
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
)