def _add_key_value(kwargs, key, value=''):
    """Add `key`,`value` if value is not empty.

    Raise an error if key exists.
    """
    error = 'keyword argument "%s" specified multiple times'
    if key in kwargs:
        raise ValueError(error % key)
    if value:
        kwargs[key] = value
