def recover_int_to_default(value, default):
    try:
        ret = int(value)
    except (ValueError, TypeError):
        ret = default
    return ret
def recover_int_to_default(value, default):
    try:
        ret = int(value)
    except (ValueError, TypeError):
        ret = default
    return ret