diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/agent_manager/agent_manager.py')
-rw-r--r-- | autogpts/autogpt/autogpt/agent_manager/agent_manager.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt/agent_manager/agent_manager.py b/autogpts/autogpt/autogpt/agent_manager/agent_manager.py index dc3bc6461..0b4731bc6 100644 --- a/autogpts/autogpt/autogpt/agent_manager/agent_manager.py +++ b/autogpts/autogpt/autogpt/agent_manager/agent_manager.py @@ -29,6 +29,7 @@ class AgentManager: ] def get_agent_dir(self, agent_id: str, must_exist: bool = False) -> Path: + assert len(agent_id) > 0 agent_dir = self.agents_dir / agent_id if must_exist and not agent_dir.exists(): raise FileNotFoundError(f"No agent with ID '{agent_id}'") |