Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

In some cases when trying to create tests, metagpt crashes.

Arnaud Gelas03012a81fdc0
diff --git a/metagpt/roles/qa_engineer.py b/metagpt/roles/qa_engineer.py
index 81082ef59..0e323893e 100644
--- a/metagpt/roles/qa_engineer.py
+++ b/metagpt/roles/qa_engineer.py
@@ -63,6 +63,8 @@ class QaEngineer(Role):
if not filename or "test" in filename:
continue
code_doc = await src_file_repo.get(filename)
+ if not code_doc:
+ continue
test_doc = await tests_file_repo.get("test_" + code_doc.filename)
if not test_doc:
test_doc = Document(