Skip to content

Commit

Permalink
chore: send failing _repr_html_ error straight to hell
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 3, 2024
1 parent 77220bf commit 3ea09ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/expr/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ def _repr_html_(self):
from rich.jupyter import _render_segments

console = get_console()
segments = list(console.render(self, console.options))

try:
segments = list(console.render(self, console.options))
except Exception: # noqa: BLE001
return None
html = _render_segments(segments)
return html.rstrip()

Expand Down

0 comments on commit 3ea09ff

Please sign in to comment.