mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Change exception to error log
This commit is contained in:
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()):
|
for attr, val, is_derived in zip(entity.all_attributes(), inst, entity.derived()):
|
||||||
|
|
||||||
if val is None and not (is_derived or attr.optional()):
|
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:
|
if val is not None:
|
||||||
attr_type = attr.type_of_attribute()
|
attr_type = attr.type_of_attribute()
|
||||||
|
|||||||
Reference in New Issue
Block a user