mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 12:56:26 +00:00
C++ file_open_status not handled in python
This commit is contained in:
@@ -197,7 +197,7 @@ file_dict = {}
|
|||||||
READ_ERROR = ifcopenshell_wrapper.file_open_status.READ_ERROR
|
READ_ERROR = ifcopenshell_wrapper.file_open_status.READ_ERROR
|
||||||
NO_HEADER = ifcopenshell_wrapper.file_open_status.NO_HEADER
|
NO_HEADER = ifcopenshell_wrapper.file_open_status.NO_HEADER
|
||||||
UNSUPPORTED_SCHEMA = ifcopenshell_wrapper.file_open_status.UNSUPPORTED_SCHEMA
|
UNSUPPORTED_SCHEMA = ifcopenshell_wrapper.file_open_status.UNSUPPORTED_SCHEMA
|
||||||
|
INVALID_SYNTAX = ifcopenshell_wrapper.file_open_status.INVALID_SYNTAX
|
||||||
|
|
||||||
class file:
|
class file:
|
||||||
"""Base class for containing IFC files.
|
"""Base class for containing IFC files.
|
||||||
@@ -280,6 +280,7 @@ class file:
|
|||||||
SchemaError,
|
SchemaError,
|
||||||
"Unsupported schema: %s" % ",".join(f.header.file_schema.schema_identifiers),
|
"Unsupported schema: %s" % ",".join(f.header.file_schema.schema_identifiers),
|
||||||
),
|
),
|
||||||
|
INVALID_SYNTAX: (Error, "Syntax error during parse, check logs"),
|
||||||
}[f.good().value()]
|
}[f.good().value()]
|
||||||
raise exc(msg)
|
raise exc(msg)
|
||||||
self.wrapped_data = f
|
self.wrapped_data = f
|
||||||
|
|||||||
Reference in New Issue
Block a user