Raises an exception if function argument is empty.

def no_empty_value(func):
    """Raises an exception if function argument is empty."""
    @wraps(func)
    def wrapper(value):
        if not value:
            raise Exception("Empty value not allowed")
        return func(value)
    return wrapper