Skip to content

Commit 5462242

Browse files
authored
fix DataError message (#351)
1 parent 3f82a89 commit 5462242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdata/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def check(self, system: "System"):
123123
elif isinstance(data, list):
124124
if len(shape) and shape[0] != len(data):
125125
raise DataError("Length of %s is %d, but expected %d" % (self.name,
126-
len(shape), shape[0]))
126+
len(data), shape[0]))
127127
else:
128128
raise RuntimeError("Unsupported type to check shape")
129129
elif self.required:

0 commit comments

Comments
 (0)