Cleanup when use snapshot but can't load snapshot

This commit is contained in:
Nicolas Mowen 2026-05-11 07:39:23 -06:00
parent 3c3e721a81
commit dda8173862

View File

@ -269,7 +269,9 @@ class ObjectDescriptionProcessor(PostProcessorApi):
if event.has_snapshot and camera_config.objects.genai.use_snapshot:
snapshot_image = self._read_and_crop_snapshot(event)
if not snapshot_image:
self.cleanup_event(event_id)
return
num_thumbnails = len(self.tracked_events.get(event_id, []))