Change exception to error log

This commit is contained in:
Dion Moult
2020-03-30 12:46:09 +11:00
committed by Thomas Krijnen
parent f921b6a7e7
commit d5d36f85be
@@ -81,7 +81,7 @@ def validate(f, logger):
for attr, val, is_derived in zip(entity.all_attributes(), inst, entity.derived()):
if val is None and not (is_derived or attr.optional()):
raise Exception("Attribute %s.%s not optional" % (entity, attr))
logger.error("Attribute %s.%s not optional" % (entity, attr))
if val is not None:
attr_type = attr.type_of_attribute()