Skip to content

Commit

Permalink
add small check (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Aug 11, 2023
1 parent 281fe50 commit b8e5082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/controllers/agent_execution.py
Expand Up @@ -102,7 +102,7 @@ def create_agent_execution(agent_execution: AgentExecutionIn,
if agent_config.key not in keys_to_exclude:
if agent_config.key == "toolkits":
if agent_config.value:
toolkits = [int(item) for item in agent_config.value.strip('{}').split(',') if item.strip()]
toolkits = [int(item) for item in agent_config.value.strip('{}').split(',') if item.strip() and item != '[]']
agent_execution_configs[agent_config.key] = toolkits
else:
agent_execution_configs[agent_config.key] = []
Expand Down

0 comments on commit b8e5082

Please sign in to comment.