We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88c4d9 commit 04f293fCopy full SHA for 04f293f
packages/toolbox-core/src/toolbox_core/tool.py
@@ -288,13 +288,14 @@ def bind_parameters(
288
"""
289
param_names = set(p.name for p in self.__params)
290
for name in bound_params.keys():
291
- if name not in param_names:
292
- raise Exception(f"unable to bind parameters: no parameter named {name}")
293
if name in self.__bound_parameters:
294
raise ValueError(
295
f"cannot re-bind parameter: parameter '{name}' is already bound"
296
)
297
+ if name not in param_names:
+ raise Exception(f"unable to bind parameters: no parameter named {name}")
298
+
299
new_params = []
300
for p in self.__params:
301
if p.name not in bound_params:
0 commit comments