def check_args(key, value1, value2=None, value3=None):
    """Check if a value is available and print an error if it is missing"""
    value = value1 or value2 or value3
    if value is None:
        raise ValueError('Missing configuration for {}'.format(key))
    return value