def on_stream_error()

in src/streamHandlers.py [0:0]


    def on_stream_error(self, error: Exception) -> bool:
        """
        Log stream errors but keep the stream open.

        Parameters
        ----------
            error(Exception): The exception we see as a result of the stream error.

        Returns
        -------
            False(bool): Return False to keep the stream open.
        """
        logging.error("Received a stream error.", exc_info=True)
        return False  # Return True to close stream, False to keep stream open.