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

Start defining custom errors in one place #2122

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

Y4suyuki
Copy link
Contributor

Define all custom errors in ./src/huggingface_hub/errors.py.

#2069

@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 marked this pull request as ready for review March 18, 2024 17:43
@Wauplin Wauplin changed the title [WIP] Define custom errors in one place Start defining custom errors in one place Mar 18, 2024
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for kicking off this topic @Y4suyuki! This PR is exactly what we aim for. If that's fine with you, I'll be enthusiastic to merge this one now so that we have a base example and then you (or other contributors?) can continue moving other errors to this file. Thanks again, that will be a great DX improvement! 🚀

@Y4suyuki
Copy link
Contributor Author

@Wauplin Sure! I'll keep working on rest of errors.
Thanks for your review!

@Wauplin Wauplin merged commit 7da60b8 into huggingface:main Mar 18, 2024
12 of 14 checks passed
@Wauplin
Copy link
Contributor

Wauplin commented Mar 18, 2024

Failed tests are unrelated to this PR. Let's get this first one merged! 🎉

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.

None yet

3 participants