mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-17 04:15:21 +00:00
Fix duplicate exclusion causing an exception; Fixes #636
This commit is contained in:
1 parent
2ad1b7b31f
commit
48d23470b1
1 file changed
+1
-1
@@ -99,7 +99,7 @@ class ToolSet:
|
||||
for excluded_tool in definition.excluded_tools:
|
||||
if not registry.is_valid_tool_name(excluded_tool):
|
||||
raise ValueError(f"Invalid tool name '{excluded_tool}' provided for exclusion")
|
||||
if excluded_tool in self._tool_names:
|
||||
if excluded_tool in tool_names:
|
||||
tool_names.remove(excluded_tool)
|
||||
excluded_tools.append(excluded_tool)
|
||||
if included_tools:
|
||||
|
||||
Reference in new issue
Block a user