python-emails icon indicating copy to clipboard operation
python-emails copied to clipboard

Possibly incorrect test when checking for (name, email) tuple

Open Cheaterman opened this issue 1 year ago • 0 comments

https://github.com/lavr/python-emails/blob/eb1adb459116bcc66b7e413a468e1a97336034d9/emails/utils.py#LL134C69-L134C70

I think this test might be incorrect? Perhaps the line should read as follows:

if isinstance(e, string_types) and (not n or isinstance(n, string_types)):

Cheaterman avatar May 30 '23 14:05 Cheaterman