From 27a8e7c89aab12ab1db79ef23f4bf7033939a694 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sat, 14 Nov 2020 10:07:08 +1100 Subject: [PATCH] IFCCSV now continues to edit other attributes even if it cannot change a class --- src/ifccsv/ifccsv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifccsv/ifccsv.py b/src/ifccsv/ifccsv.py index 68bb7bcd21..538248a44d 100755 --- a/src/ifccsv/ifccsv.py +++ b/src/ifccsv/ifccsv.py @@ -37,7 +37,8 @@ class IfcAttributeExtractor: try: new_element = ifc_file.create_entity(new_class) except: - return + print(f"Class of {element} could not be changed to {new_class}") + return element new_attributes = [new_element.attribute_name(i) for i, attribute in enumerate(new_element)] for i, attribute in enumerate(element): try: