mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-25 21:48:30 +03:00
Catch event not found object detection
This commit is contained in:
parent
5f1042fd5d
commit
735d400beb
@ -86,7 +86,11 @@ class ObjectDescriptionProcessor(PostProcessorApi):
|
|||||||
and data["id"] not in self.early_request_sent
|
and data["id"] not in self.early_request_sent
|
||||||
):
|
):
|
||||||
if data["has_clip"] and data["has_snapshot"]:
|
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 (
|
if (
|
||||||
not camera_config.objects.genai.objects
|
not camera_config.objects.genai.objects
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user