Skip to content

Commit 15cc537

Browse files
committed
small changes to the exception that is raised if a field not in the input
1 parent 7fb3d17 commit 15cc537

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydra/engine/helpers_file.py

+2
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,8 @@ def _template_formatting(field, inputs, inputs_dict_st):
654654

655655
for fld in inp_fields:
656656
fld_name = fld[1:-1] # extracting the name form {field_name}
657+
if fld_name not in inputs_dict_st:
658+
raise AttributeError(f"{fld_name} is not provided in the input")
657659
fld_value = inputs_dict_st[fld_name]
658660
if fld_value is attr.NOTHING:
659661
# if value is NOTHING, nothing should be added to the command

0 commit comments

Comments
 (0)