mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 21:29:11 +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')
|
||||
def shutdown_event():
|
||||
# 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
|
||||
elif processor_config.conversation.verbose:
|
||||
print('INFO:\tSaving conversation logs to disk...')
|
||||
|
||||
Reference in New Issue
Block a user