We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bc914 commit 8519f0dCopy full SHA for 8519f0d
src/huggingface_hub/_login.py
@@ -192,7 +192,11 @@ def auth_list() -> None:
192
tokens = get_stored_tokens()
193
194
if not tokens:
195
- logger.info("No access tokens found.")
+ if _get_token_from_environment():
196
+ logger.info("No stored access tokens found.")
197
+ logger.warning("Note: Environment variable `HF_TOKEN` is set and is the current active token.")
198
+ else:
199
+ logger.info("No access tokens found.")
200
return
201
# Find current token
202
current_token = get_token()
0 commit comments