mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 02:27:10 +00:00
Check whether processor_config exists during shutdown event
This commit is contained in:
parent
4d4d2ff921
commit
d1fe6353b5
1 changed files with 1 additions and 1 deletions
|
@ -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...')
|
||||||
|
|
Loading…
Reference in a new issue