Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Repository if whoami call doesn't return an email #2320

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jun 10, 2024

Better to do whoami().get("email") since this field is not guaranteed to be returned. It depends on token's permission which can be restricted in case of finegrained token or OAuth token.

First reported on HF Forum.

@Wauplin Wauplin requested a review from LysandreJik June 10, 2024 06:39
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Wauplin Wauplin merged commit 4980c14 into main Jun 10, 2024
16 checks passed
@Wauplin Wauplin deleted the fix-repository-if-no-email-in-whoami branch June 10, 2024 07:29
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.

2 participants