Skip to content

Commit

Permalink
Merge pull request #765 from arnaudgelas/fix/crash
Browse files Browse the repository at this point in the history
In some cases when trying to create tests, metagpt crashes.
  • Loading branch information
geekan committed Jan 18, 2024
2 parents 89f92ff + 03012a8 commit af018a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metagpt/roles/qa_engineer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ async def _write_test(self, message: Message) -> None:
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(
Expand Down

0 comments on commit af018a8

Please sign in to comment.