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,7 +398,8 @@ def update(
|
|||
logger.info("📬 Search index updated via API")
|
||||
|
||||
try:
|
||||
state.processor_config = configure_processor(state.config.processor)
|
||||
if state.config and state.config.processor:
|
||||
state.processor_config = configure_processor(state.config.processor)
|
||||
except ValueError as e:
|
||||
logger.error(e)
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
|
Loading…
Reference in a new issue