huggingface_hub
49c27b40 - Clearer HTTP error messages in `huggingface_hub` (#1019)

Commit
3 years ago
Clearer HTTP error messages in `huggingface_hub` (#1019) * draft * refactored error handling * fix regexes in tetss * add tests for HfHubHttpErrors and helpers * fix test * fix test_model_info regex * renamed to hf_raise_for_status + new attributes * Add documentation * isort fix * FIX mock test * Add BadRequestError reference to doc * doc * no deprecation for _raise_for_status * Update docs/source/package_reference/utilities.mdx Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * sphinx to new doc * relative imports for doc * exmaple instead of usage Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Author
Parents
Loading