mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
fix error msg
This commit is contained in:
parent
222694c329
commit
126bcdafb9
1 changed files with 2 additions and 0 deletions
|
|
@ -233,6 +233,8 @@ class GitRepository:
|
|||
files = []
|
||||
try:
|
||||
directory_path = Path(self.workdir) / relative_path
|
||||
if not directory_path.exists():
|
||||
return []
|
||||
for file_path in directory_path.iterdir():
|
||||
if file_path.is_file():
|
||||
rpath = file_path.relative_to(root_relative_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue