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 426f1f4 commit 009b3a2Copy full SHA for 009b3a2
odml/validation.py
@@ -134,8 +134,8 @@ def object_required_attributes(obj):
134
if arg[1] == 1:
135
if not hasattr(obj, arg[0]):
136
msg = "Missing attribute %s for %s" % (obj.format().name.capitalize(), arg[0])
137
- yield ValidationError(obj, msg, LABEL_WARNING)
138
- return
+ yield ValidationError(obj, msg, LABEL_ERROR)
+ continue
139
obj_arg = getattr(obj, arg[0])
140
if not obj_arg and not isinstance(obj_arg, bool):
141
msg = "%s %s undefined" % (obj.format().name.capitalize(), arg[0])
0 commit comments