From c838139fdc837bf880474feeaf7873832d45c082 Mon Sep 17 00:00:00 2001 From: Andrej Date: Wed, 28 May 2025 16:16:06 +0500 Subject: [PATCH] Fix Ruff UP024 (os-error-alias) https://docs.astral.sh/ruff/rules/os-error-alias/ --- src/ifcopenshell-python/ifcopenshell/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index 260b3e5f41..672e55c24c 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -166,7 +166,7 @@ def open( f = ifcopenshell_wrapper.parse_ifcxml(str(path.absolute())) if f: return file(f) - raise IOError(f"Failed to parse .ifcXML file from {path}") + raise OSError(f"Failed to parse .ifcXML file from {path}") if format == ".ifcZIP": with tempfile.TemporaryDirectory() as unzipped_path: with zipfile.ZipFile(path) as zf: