mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 03:46:23 +02:00
AttributeError: 'NoneType' object has no attribute 'sop'
This commit is contained in:
parent
a9f08e7dd6
commit
7ec3b5c627
2 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue