mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix Ruff UP024 (os-error-alias)
https://docs.astral.sh/ruff/rules/os-error-alias/
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user