-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional error fallbacks during rendering.
- Avoid calling __repr__ in the renderer last-resort fallback, since this is user-defined and can still throw an exception for invalid objects. - Catch errors while rendering deferred parts, to avoid breaking the IPython display integration if a deferred part raises an exception. (This can happen due to bugs in array rendering adapters, for instance.) Before, errors in deferred parts could bubble out to IPython, which would fall back to text rendering, even though a partial HTML output was already shown. - Add tests for custom handlers and error checking logic. PiperOrigin-RevId: 668126136
- Loading branch information
1 parent
5e429cb
commit 1b8eca6
Showing
5 changed files
with
198 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters