From 50c2141d2094c287f2bbd16d64ff482b96cd0e60 Mon Sep 17 00:00:00 2001 From: Shimada666 <649940882@qq.com> Date: Sun, 19 May 2024 20:42:55 +0800 Subject: [PATCH] feat: add log when config file not found (#1898) --- opendevin/core/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opendevin/core/config.py b/opendevin/core/config.py index 415fc3ca30..c10de725b4 100644 --- a/opendevin/core/config.py +++ b/opendevin/core/config.py @@ -316,7 +316,8 @@ def get_llm_config_arg(llm_config_arg: str): try: with open('config.toml', 'r', encoding='utf-8') as toml_file: toml_config = toml.load(toml_file) - except FileNotFoundError: + except FileNotFoundError as e: + logger.error(f'Config file not found: {e}') return None except toml.TomlDecodeError as e: logger.error(f'Cannot parse llm group from {llm_config_arg}. Exception: {e}')