AttributeError: 'NoneType' object has no attribute 'sop'

This commit is contained in:
莘权 马 2024-04-07 14:26:44 +08:00
parent a9f08e7dd6
commit 7ec3b5c627
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ async def write_prd(idea: str, project_path: Optional[str | Path] = None) -> Pat
from metagpt.roles import ProductManager
ctx = Context()
if project_path:
if project_path and Path(project_path).exists():
ctx.config.project_path = Path(project_path)
ctx.config.inc = True
role = ProductManager(context=ctx)