syrusakbary/validate_email

AttributeError: 'NoneType' object has no attribute 'header'

Opened this issue · 0 comments

ROBLOX | noreply@roblox.com
Traceback (most recent call last):
File "EMAILCHECK.py", line 16, in
is_valid = validate_email(str(json_data['emails'][0][0]),verify=True)
File "C:\Python27\lib\site-packages\validate_email.py", line 134, in validate_email
mx_hosts = get_mx_ip(hostname)
File "C:\Python27\lib\site-packages\validate_email.py", line 102, in get_mx_ip
MX_DNS_CACHE[hostname] = DNS.mxlookup(hostname)
File "C:\Python27\lib\site-packages\DNS\lazy.py", line 51, in mxlookup
l = dnslookup(name, qtype = 'mx')
File "C:\Python27\lib\site-packages\DNS\lazy.py", line 35, in dnslookup
if result.header['status'] != 'NOERROR':
AttributeError: 'NoneType' object has no attribute 'header'