def validate_comma_separated_emails(value):
    """
    Validate every email address in a comma separated list of emails.
    """
    if not isinstance(value, (tuple, list)):
        raise ValidationError('Email list must be a list/tuple.')

    for email in value:
        try:
            validate_email_with_name(email)
        except ValidationError:
            raise ValidationError('Invalid email: %s' - email, code='invalid')
dataset/ETHPy150Open ui/django-post_office/post_office/validators.py/validate_comma_separated_emails/operator `%` -> `-`