Skip to content

Commit 433eb90

Browse files
committed
fix: Reverse the error conditions to avoid masking of the second error.
1 parent 8c2fea2 commit 433eb90

File tree

1 file changed

+0
-2
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+0
-2
lines changed

packages/toolbox-core/src/toolbox_core/tool.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,6 @@ def bind_parameters(
316316
"""
317317
param_names = set(p.name for p in self.__params)
318318
for name in bound_params.keys():
319-
if name not in param_names:
320-
raise Exception(f"unable to bind parameters: no parameter named {name}")
321319
if name in self.__bound_parameters:
322320
raise ValueError(
323321
f"cannot re-bind parameter: parameter '{name}' is already bound"

0 commit comments

Comments
 (0)