Skip to content

Commit 009b3a2

Browse files
committed
[validation.py] Change Label and Return for Attribute Check
1 parent 426f1f4 commit 009b3a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odml/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def object_required_attributes(obj):
134134
if arg[1] == 1:
135135
if not hasattr(obj, arg[0]):
136136
msg = "Missing attribute %s for %s" % (obj.format().name.capitalize(), arg[0])
137-
yield ValidationError(obj, msg, LABEL_WARNING)
138-
return
137+
yield ValidationError(obj, msg, LABEL_ERROR)
138+
continue
139139
obj_arg = getattr(obj, arg[0])
140140
if not obj_arg and not isinstance(obj_arg, bool):
141141
msg = "%s %s undefined" % (obj.format().name.capitalize(), arg[0])

0 commit comments

Comments
 (0)