def fetch(self, sequence, retries=None):
        if self.closed or not retries:
            return

        try:
            request_params = self.create_request_params(sequence)
            return self.session.http.get(sequence.segment.uri,
                                         timeout=self.timeout,
                                         exception=StreamError,
                                         **request_params)
        except StreamError as err:
            self.logger.error("Failed to open segment {0}: {1}", sequence.num, err)
            return self.fetch(sequence, retries - 1)
dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/stream/hls.py/HLSStreamWriter.fetch/original