Skip to content

Commit 4846440

Browse files
committed
DataPoint: fix validator
1 parent b71f350 commit 4846440

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dp3/common/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def instanciate_dps(v, info: FieldValidationInfo):
8383
if isinstance(v, DataPointBase):
8484
return v
8585
# Return to give clearer error message if etype or attr is not present
86-
if "etype" not in info.data or "attr" not in info.data:
86+
if "etype" not in v or "attr" not in v:
8787
return v
8888

8989
etype = v.get("etype")

0 commit comments

Comments
 (0)