diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 15b6596c8..491e5f781 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -258,6 +258,8 @@ def __enter__(self) -> Self: container_machine = call( *run_cmd, *platform_args, self.image, *ctr_cmd, capture_stdout=True ).strip() + else: + raise simulate_32_bit = container_machine not in {"i686", "armv7l", "armv8l"} shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]