mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix lint (#9290)
This commit is contained in:
parent
4ee269c3f7
commit
081880248c
@ -108,7 +108,7 @@ class AgentConfig(BaseModel):
|
||||
custom_config = agent_cls.config_model.model_validate(merged)
|
||||
except Exception as e:
|
||||
logger.warning(
|
||||
f"Failed to load custom agent class [{merged.get('classpath')}]: {e}. Using default config model."
|
||||
f'Failed to load custom agent class [{merged.get("classpath")}]: {e}. Using default config model.'
|
||||
)
|
||||
custom_config = cls.model_validate(merged)
|
||||
else:
|
||||
@ -117,7 +117,7 @@ class AgentConfig(BaseModel):
|
||||
try:
|
||||
agent_cls = Agent.get_cls(name)
|
||||
custom_config = agent_cls.config_model.model_validate(merged)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
# otherwise, just fall back to the default config model
|
||||
custom_config = cls.model_validate(merged)
|
||||
agent_mapping[name] = custom_config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user