Fix Ruff UP024 (os-error-alias)

https://docs.astral.sh/ruff/rules/os-error-alias/
This commit is contained in:
Andrej
2025-05-28 16:16:06 +05:00
parent a42a95adcb
commit c838139fdc
@@ -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: