Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/colab_cli/commands/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ def _hardware_label(accelerator: str) -> str:
def _parse_accelerator(
value: str, mapping: dict[str, Accelerator], flag: str
) -> Accelerator:
"""Look up an accelerator, rejecting unknown values instead of guessing.

Silently falling back to A100 (or v6e1) turned a typo in an automation
script into a real, billable hardware request.
"""
"""Look up an accelerator, raises for unknown values."""
accelerator = mapping.get(value.lower())
if accelerator is None:
supported = ", ".join(name.upper() for name in mapping)
Expand Down
Loading