From fd9485e7ea5df34ca29fa0a2f632fc10132c6aec Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 14 Nov 2024 22:00:11 +0100 Subject: [PATCH] C++ file_open_status not handled in python --- src/ifcopenshell-python/ifcopenshell/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index f08eea3541..9fb6165eba 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -197,7 +197,7 @@ file_dict = {} READ_ERROR = ifcopenshell_wrapper.file_open_status.READ_ERROR NO_HEADER = ifcopenshell_wrapper.file_open_status.NO_HEADER UNSUPPORTED_SCHEMA = ifcopenshell_wrapper.file_open_status.UNSUPPORTED_SCHEMA - +INVALID_SYNTAX = ifcopenshell_wrapper.file_open_status.INVALID_SYNTAX class file: """Base class for containing IFC files. @@ -280,6 +280,7 @@ class file: SchemaError, "Unsupported schema: %s" % ",".join(f.header.file_schema.schema_identifiers), ), + INVALID_SYNTAX: (Error, "Syntax error during parse, check logs"), }[f.good().value()] raise exc(msg) self.wrapped_data = f