def transform_int_or_unlimited(value):
    try:
        return int(value)
    except __HOLE__:
        e = sys.exc_info()[1]

        if str(value).lower() == 'unlimited':
            return -1

        raise e
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/cloudstack.py/transform_int_or_unlimited