We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9299e commit 56e12feCopy full SHA for 56e12fe
odml/validation.py
@@ -134,7 +134,7 @@ def object_required_attributes(obj):
134
for arg in args:
135
if arg[1] == 1:
136
if not hasattr(obj, arg[0]):
137
- msg = "Missing attribute %s for %s" % (obj.format().name.capitalize(), arg[0])
+ msg = "Missing attribute %s for %s" % (arg[0], obj.format().name.capitalize())
138
yield ValidationError(obj, msg, LABEL_ERROR)
139
continue
140
obj_arg = getattr(obj, arg[0])
0 commit comments