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