diff --git a/rich/logging.py b/rich/logging.py index c193ee5a..47ca7d42 100644 --- a/rich/logging.py +++ b/rich/logging.py @@ -150,7 +150,10 @@ class RichHandler(Handler): log_renderable = self.render( record=record, traceback=traceback, message_renderable=message_renderable ) - self.console.print(log_renderable) + try: + self.console.print(log_renderable) + except Exception: + self.handleError(record) def render_message(self, record: LogRecord, message: str) -> "ConsoleRenderable": """Render message text in to Text.