def request(self, batch, attempt=0):
        """Attempt to upload the batch and retry before raising an error """
        try:
            post(self.write_key, batch=batch)
        except:
            if attempt > self.retries:
                raise
            self.request(batch, attempt+1)
dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/lib/analytics/consumer.py/Consumer.request/original