mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
Check if state.config is populated before configuring via the update method
This commit is contained in:
parent
bf8914d0c8
commit
260272dca2
1 changed files with 2 additions and 1 deletions
|
@ -398,6 +398,7 @@ def update(
|
||||||
logger.info("📬 Search index updated via API")
|
logger.info("📬 Search index updated via API")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if state.config and state.config.processor:
|
||||||
state.processor_config = configure_processor(state.config.processor)
|
state.processor_config = configure_processor(state.config.processor)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
|
|
Loading…
Reference in a new issue