Skip to content

Unicode error when checking some emails #111

@chrisjuchem

Description

@chrisjuchem

An email with a . immediately following the @ will produce a UnicodeError:
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)

To reproduce:

import trafaret as t
t.Email.check("aa@.com")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions