catch case when semantic search is disabled

This commit is contained in:
Josh Hawkins 2024-10-07 08:41:39 -05:00
parent 96795200f7
commit d7df5c9068

View File

@ -279,6 +279,8 @@ class FrigateApp:
if self.config.semantic_search.enabled:
# Create a client for other processes to use
self.embeddings = EmbeddingsContext(self.db)
else:
self.embeddings = None
def init_external_event_processor(self) -> None:
self.external_event_processor = ExternalEventProcessor(self.config)