mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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()):
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user