[BUG] AttributeError after the validation returns False for a valid email #99
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: karolyi/py3-validate-email#99
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
The function returns False, but an AttributeError (calling startswith() method on None) raises from a different thread. The email inputted is valid.
To Reproduce
My debug output
Expected behavior
Return True, no errors
Please complete the following information:
Additional context
None
To me it seems this is an error that doesn't stem from the module itself, but your domain name resolution seems not to be functioning properly.
Are you able to reproduce the bug every time you run your script?
I see you're on windows, can you provide the output of the following:
nslookup
set type=mx
gmail.com
Until I'm unable to reproduce the bug at my side, I'm unable to fix it.
Problem is, I see no traceback going back to my module, so I can only guess which part can be causing this. But, I suspect that the dnspython and windows constellation is at fault here.
Can you please run the following in python, and tell its output:
I am not familiar with win23util.py (don't use python on windows much), but to me it seems that
get_default_resolver()
returns something windows specific, and there is a bug in there.You could report this to dnspython. Also, make sure you test this with the most recent dnspython version, as they might already have figured this bug out and have a fix in place for it.
Feel free to come back to me with any information on this, however, please consider closing this bug for now as it's unrelated to this module.
For further exploring this issue, do you use the latest python3.9 on windows?
If that's a bug in there (or a constellation between dnspython==latest and python3.9 on windows), it's still worth a bugreport for dnspython, as they might have a case to fix then.
Keep me updated.
Did you also try with 3.9.15?
Too bad they don't provide installers for 3.9 anymore. This might well be a bug in python standard libraries, which they would have to fix.
It makes the situation easier/more acceptable that it works in newer versions.
What you could also do is overwrite the standard libraries in your installation from the newest tarball and see if it still errors out.
Just an idea.