We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76a00e9 commit 2766c81Copy full SHA for 2766c81
1 file changed
src/huggingface_hub/hf_api.py
@@ -2091,7 +2091,9 @@ def _inner_whoami(self, token: str) -> dict:
2091
"Note that HF_TOKEN takes precedence over `hf auth login`."
2092
)
2093
elif token == _get_token_from_file():
2094
- error_message += " The token stored is invalid. Please run `hf auth login` to update it."
+ error_message += (
2095
+ " The token stored is invalid. Please run `hf auth login --force` to set a new token."
2096
+ )
2097
raise HfHubHTTPError(error_message, response=e.response) from e
2098
if e.response.status_code == 429:
2099
error_message = (
0 commit comments