Skip to content

Commit

Permalink
small changes to the exception that is raised if a field not in the i…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
djarecka committed Jun 17, 2021
1 parent 7fb3d17 commit 15cc537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydra/engine/helpers_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ def _template_formatting(field, inputs, inputs_dict_st):

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

0 comments on commit 15cc537

Please sign in to comment.