mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
refine code
This commit is contained in:
parent
b16315f6c7
commit
244fa81ffe
7 changed files with 22 additions and 12 deletions
|
|
@ -17,6 +17,8 @@ class YamlModel(BaseModel):
|
|||
|
||||
@classmethod
|
||||
def read_yaml(cls, file_path: Path) -> Dict:
|
||||
if not file_path.exists():
|
||||
return {}
|
||||
with open(file_path, "r") as file:
|
||||
return yaml.safe_load(file)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue