def on_stream_error()

in src/influxDBTokenStreamHandler.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 an error with the InfluxDB token publish stream', exc_info=True)
        return False