Skip to content

Commit 0b04846

Browse files
authored
Merge pull request #481 from djarecka/fix/exception
small changes to an exception
2 parents fbb39d6 + 15cc537 commit 0b04846

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)