def sleep(self, min_time=0):
        """
        Sleep a minimum of `min_time` seconds.
        The actual sleeping time will increase with the number of retries.
        """
        self.retries += 1
        if self.retries > self.max_retries:
            raise MaximumRetriesExceeded(self, self.args)

        self.callback(self, self.retries, self.args)

        timeout = self.retry_timeout * (self.retries - 1)
        if timeout < min_time:
            timeout = min_time
        log.debug('Sleeping for %d seconds', timeout)
        time.sleep(timeout)
dataset/ETHPy150Open mwclient/mwclient/mwclient/sleep.py/Sleeper.sleep/original