Skip to content

Commit bd46025

Browse files
committed
fixing mandatory field check
1 parent d9736aa commit bd46025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def check_fields_input_spec(self):
244244
for fld in fields:
245245
mdata = fld.metadata
246246
# checking if the mandatory field is provided
247-
if getattr(self, fld.name) is None:
247+
if getattr(self, fld.name) is attr.NOTHING:
248248
if mdata.get("mandatory"):
249249
raise Exception(f"{fld.name} is mandatory, but no value provided")
250250
else:

0 commit comments

Comments
 (0)