mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Check whether processor_config exists during shutdown event
This commit is contained in:
@@ -258,7 +258,7 @@ def initialize_processor(config: FullConfig):
|
|||||||
@app.on_event('shutdown')
|
@app.on_event('shutdown')
|
||||||
def shutdown_event():
|
def shutdown_event():
|
||||||
# No need to create empty log file
|
# No need to create empty log file
|
||||||
if not processor_config.conversation.meta_log:
|
if not (processor_config and processor_config.conversation and processor_config.conversation.meta_log):
|
||||||
return
|
return
|
||||||
elif processor_config.conversation.verbose:
|
elif processor_config.conversation.verbose:
|
||||||
print('INFO:\tSaving conversation logs to disk...')
|
print('INFO:\tSaving conversation logs to disk...')
|
||||||
|
|||||||
Reference in New Issue
Block a user