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

Ignore all errors when trying to unpack refs from an external library #383

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

sgugger
Copy link
Contributor

@sgugger sgugger commented Jun 8, 2023

cc @mishig25 but I know you're off.

Currently the documentation on Transformers latest release is not building because the objects.inv on the stable doc of tokenizers is invalid (might be worth rebuilding the doc on tokenizers latest release @ArthurZucker ).

This PR makes us ignore that error (which appears in zlib.decompress(b"".join(object_lines)).decode().split("\n")). It could be refined to the actual exception returned by zlib but I don't have time to debug this right now, so going for the quick fix :-)

@sgugger sgugger requested a review from LysandreJik June 8, 2023 14:19
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM aside from the print!

src/doc_builder/external.py Outdated Show resolved Hide resolved
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
@sgugger sgugger merged commit 778f5d8 into main Jun 8, 2023
@sgugger sgugger deleted the ignore_invalid_objinv branch June 8, 2023 14:21
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