diff --git a/frigate/embeddings/maintainer.py b/frigate/embeddings/maintainer.py index 934e16654..c4adaddba 100644 --- a/frigate/embeddings/maintainer.py +++ b/frigate/embeddings/maintainer.py @@ -157,6 +157,10 @@ class EmbeddingMaintainer(threading.Thread): description = self.genai_client.generate_description(thumbnails, metadata) + if description is None: + logger.debug("Failed to generate description for %s", event.id) + return + # Update the event to add the description event.data["description"] = description event.save()