mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
feat: add log when config file not found (#1898)
This commit is contained in:
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user