

def convert_to_int(value):
    try:
        new_value = int(new_value)
    except ValueError:
        new_value = 0
    return new_value

dataset/ETHPy150Open wevoteeducation/WeVoteBase/wevote_functions/models.py convert_to_int/VarMisuse@18/24 `value`->`new_value`