🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: move dir
莘权 马ef633b7c26f8
diff --git a/metagpt/utils/git_repository.py b/metagpt/utils/git_repository.pyindex 8b53ce7d2..5aec4509c 100644--- a/metagpt/utils/git_repository.py+++ b/metagpt/utils/git_repository.py@@ -197,7 +197,10 @@ class GitRepository:if new_path.exists():logger.info(f"Delete directory {str(new_path)}")shutil.rmtree(new_path)- shutil.move(src=str(self.workdir), dst=str(new_path)) # self.workdir.rename(new_path)+ try:+ shutil.move(src=str(self.workdir), dst=str(new_path))+ except Exception as e:+ logger.warning(f"Move {str(self.workdir)} to {str(new_path)} error: {e}")logger.info(f"Rename directory {str(self.workdir)} to {str(new_path)}")self._repository = Repo(new_path)