Skip to content

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

Merged
sgugger merged 2 commits into
mainfrom
ignore_invalid_objinv
Jun 8, 2023
Merged

Ignore all errors when trying to unpack refs from an external library#383
sgugger merged 2 commits into
mainfrom
ignore_invalid_objinv

Conversation

@sgugger

@sgugger sgugger commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

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

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

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!

Comment thread src/doc_builder/external.py Outdated
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