Catch event not found object detection

This commit is contained in:
Nicolas Mowen 2025-12-24 17:30:23 -07:00
parent 5f1042fd5d
commit 735d400beb

View File

@ -86,7 +86,11 @@ class ObjectDescriptionProcessor(PostProcessorApi):
and data["id"] not in self.early_request_sent
):
if data["has_clip"] and data["has_snapshot"]:
event: Event = Event.get(Event.id == data["id"])
try:
event: Event = Event.get(Event.id == data["id"])
except DoesNotExist:
logger.error(f"Event {data['id']} not found")
return
if (
not camera_config.objects.genai.objects