From 15cc537729d7177767b0c38d433e509be68af002 Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Thu, 17 Jun 2021 20:17:49 +0200 Subject: [PATCH] small changes to the exception that is raised if a field not in the input --- pydra/engine/helpers_file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pydra/engine/helpers_file.py b/pydra/engine/helpers_file.py index 90ea6d7a13..b74bf1e090 100644 --- a/pydra/engine/helpers_file.py +++ b/pydra/engine/helpers_file.py @@ -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