From d5d36f85be3bc79aa52554dfa5bd0d6927a20760 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 30 Mar 2020 12:46:09 +1100 Subject: [PATCH] Change exception to error log --- src/ifcopenshell-python/ifcopenshell/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index a27d1d421d..46a3a98dd1 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -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()