Skip to content

Commit d694318

Browse files
committed
fix linter
1 parent cfde5df commit d694318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cibuildwheel/oci_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def current(cls):
5353
}
5454
try:
5555
return mapping[arch]
56-
except KeyError:
56+
except KeyError as ex:
5757
msg = f"Unsupported platform architecture: {arch}"
58-
raise OSError(msg)
58+
raise OSError(msg) from ex
5959

6060

6161
@dataclasses.dataclass(frozen=True)

0 commit comments

Comments
 (0)