Skip to content

Commit

Permalink
Include the URL in the error message (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Mar 18, 2024
1 parent 6b6d41c commit 6d9816a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litgpt/scripts/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def gated_repo_catcher(repo_id: str):
except OSError as e:
if "gated repo" in str(e):
raise ValueError(
f"{repo_id} requires authentication, please set the `HF_TOKEN=your_token` environment"
" variable or pass --access_token=your_token. You can find your token by visiting"
f"https://huggingface.co/{repo_id} requires authentication, please set the `HF_TOKEN=your_token`"
" environment variable or pass --access_token=your_token. You can find your token by visiting"
" https://huggingface.co/settings/tokens"
)
raise e
Expand Down

0 comments on commit 6d9816a

Please sign in to comment.