diff --git a/src/main.py b/src/main.py index 0c5facea..f2bc7db9 100644 --- a/src/main.py +++ b/src/main.py @@ -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...')