Skip to content

fix: friendlier error messages for missing/gated Hugging Face repos (401/404)#16

Merged
pipe1os merged 1 commit into
pipe1os:mainfrom
laishettikarthik-tech:main
Jun 12, 2026
Merged

fix: friendlier error messages for missing/gated Hugging Face repos (401/404)#16
pipe1os merged 1 commit into
pipe1os:mainfrom
laishettikarthik-tech:main

Conversation

@laishettikarthik-tech

Copy link
Copy Markdown
Contributor

Closes #14

What this PR does

  • Adds friendly 401/404 error messages when a Hugging Face repo
    is not found or gated
  • These are caught by the existing generic exception handler in
    cli.py and printed via rich console without a stack trace
  • Both _make_request and fetch_huggingface_repo's API call now
    raise clear, actionable errors

Before

Unhandled urllib.error.HTTPError → messy Python stack trace

After

[red]Error: Could not find repository on Hugging Face (404 Not Found): repo/name[/red]

@pipe1os pipe1os merged commit da26434 into pipe1os:main Jun 12, 2026
9 checks passed
@pipe1os

pipe1os commented Jun 12, 2026

Copy link
Copy Markdown
Owner

merged, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Graceful error handling for missing remote Hugging Face repos

2 participants