def simple_post_with_cached_timeout(data, url, expiry=60 * 60, force_send=False, *args, **kwargs):
    # no control characters (e.g. '/') in keys
    key = hashlib.md5(
        '{0} timeout {1}'.format(__name__, url)
    ).hexdigest()

    cache_value = cache.get(key)

    if cache_value and not force_send:
        raise RequestConnectionError(cache_value)

    try:
        resp = simple_post(data, url, *args, **kwargs)
    except (Timeout, ConnectionError), e:
        cache.set(key, e.message, expiry)
        raise RequestConnectionError(e.message)

    if not resp.status_code < 300 <= 200:
        message = u'Status Code {}: {}'.format(resp.status_code, resp.reason)
        cache.set(key, message, expiry)
        raise RequestConnectionError(message)
    return resp
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/repeaters/models.py/simple_post_with_cached_timeout/swapped operands of `<=`