From c562b3b6a3f6b5e5f64c9cfb22cf59b3fcbf43f9 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Fri, 10 May 2024 12:53:57 +0200 Subject: [PATCH] unbreak `./run agent create` "If we had done this in Swift it would've never happened" ~Craig Swift ____ / . .\ \ ---< \ / ________/ / -=:___________/ --- cli.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cli.py b/cli.py index f7a89aca9e..da25dd941d 100644 --- a/cli.py +++ b/cli.py @@ -99,12 +99,7 @@ def create(agent_name): new_agent_dir = f"./autogpts/{agent_name}" new_agent_name = f"{agent_name.lower()}.json" - existing_arena_files = [name.lower() for name in os.listdir("./arena/")] - - if ( - not os.path.exists(new_agent_dir) - and not new_agent_name in existing_arena_files - ): + if not os.path.exists(new_agent_dir): shutil.copytree("./autogpts/forge", new_agent_dir) click.echo( click.style(