rescue Octokit::ServerError, Octokit::TooManyRequests, Faraday::ConnectionFailed => ex
          if (rate_limit_retry_count += 1) < 5
            rate_limit_sleep_length = 2**rate_limit_retry_count
            logger.debug("Unable to get rate limit, sleeping for #{rate_limit_sleep_length} seconds and retrying")
            logger.debug(ex)