mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Null check config, log warning instead of error when configuring search
This commit is contained in:
parent
5c4eb950d5
commit
09f739b8cc
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ def configure_search_types(config: FullConfig):
|
|||
|
||||
|
||||
def configure_search(model: SearchModels, config: FullConfig, regenerate: bool, t: Optional[state.SearchType] = None):
|
||||
if config.content_type is None or config.search_type is None:
|
||||
logger.error("🚨 Content Type or Search Type not configured.")
|
||||
if config is None or config.content_type is None or config.search_type is None:
|
||||
logger.warn("🚨 No Content or Search type is configured.")
|
||||
return
|
||||
|
||||
# Initialize Org Notes Search
|
||||
|
|
Loading…
Add table
Reference in a new issue