From 806aa14bd0b4cd0ed09ef2f58c1736b745b59207 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 25 Oct 2025 21:55:06 +0200 Subject: [PATCH] Compatibility for older builds --- src/ifcopenshell-python/ifcopenshell/file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/file.py b/src/ifcopenshell-python/ifcopenshell/file.py index 00d84cc8f9..e6ff395086 100644 --- a/src/ifcopenshell-python/ifcopenshell/file.py +++ b/src/ifcopenshell-python/ifcopenshell/file.py @@ -1047,7 +1047,10 @@ class file: @property def header(self): - return file_header(self, self.wrapped_data.header()) + try: + return file_header(self, self.wrapped_data.header()) + except: + return self.wrapped_data.header @property def storage(self) -> Optional[rocksdb_file_storage]: