mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
Fixes bug: Agent 0 does not exist
This commit is contained in:
@@ -60,7 +60,7 @@ def delete_agent(key):
|
||||
global agents
|
||||
|
||||
try:
|
||||
del agents[key]
|
||||
del agents[int(key)]
|
||||
return True
|
||||
except KeyError:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user