Skip to content

Commit

Permalink
Merge pull request #481 from djarecka/fix/exception
Browse files Browse the repository at this point in the history
small changes to an exception
  • Loading branch information
djarecka authored Jun 18, 2021
2 parents fbb39d6 + 15cc537 commit 0b04846
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 0b04846

Please sign in to comment.