Null check config, log warning instead of error when configuring search

This commit is contained in:
Debanjum Singh Solanky 2023-06-27 15:48:48 -07:00
parent 5c4eb950d5
commit 09f739b8cc

View file

@ -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