Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 86bbfa6

Browse files
committed
Fix ruff violations
In preparation for the script migration to PyTorch repo, see pytorch/pytorch#139815 / https://github.com/pytorch/pytorch/actions/runs/11694449222/job/32568067621
1 parent be9163b commit 86bbfa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aarch64_linux/build_aarch64_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,11 +737,11 @@ def parse_arguments():
737737
sys.exit(0)
738738

739739
if len(key_name) == 0:
740-
raise Exception("""
740+
raise RuntimeError("""
741741
Cannot start build without key_name, please specify
742742
--key-name argument or AWS_KEY_NAME environment variable.""")
743743
if len(keyfile_path) == 0 or not os.path.exists(keyfile_path):
744-
raise Exception(f"""
744+
raise RuntimeError(f"""
745745
Cannot find keyfile with name: [{key_name}] in path: [{keyfile_path}], please
746746
check `~/.ssh/` folder or manually set SSH_KEY_PATH environment variable.""")
747747

0 commit comments

Comments
 (0)