def validate_rating(value):
    """
    Ensures value is an int between 1 and 5
    :param value:
        Hopefully something that can be turned into an int
        hopefully between 1 and 5
    :throws ValueError if the conditions are not met
    """
    int_value = int(value)
    if int_value < 1 or int_value > 5:
        raise ValueError('ratings must be between 1 and 5')
