-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
for field in obj.DESCRIPTOR.fields:
if not field.label == field.LABEL_REQUIRED:
continue
if not field.has_default_value:
continue
if not field.name in adict:
raise ConvertException(
'Field "%s" missing from descriptor dictionary.'
% field.name)
I have question about the second if statement
if not field.has_default_value:
continue
does this loop meant to check:
if there is a filed which is labeled require but without default value, then the filed.name must be the key in adict.
if so, maybe we should change this if statement to:
if not field.has_default_value:
continue
If I misunderstand anything, please let me know.
Thanks a lot.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels