Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Not Working #1

Open
IshaqAhmed99 opened this issue Feb 21, 2022 · 0 comments
Open

Code Not Working #1

IshaqAhmed99 opened this issue Feb 21, 2022 · 0 comments

Comments

@IshaqAhmed99
Copy link

Following error occurs when I try to use your validator, Could you tell what is the problem?

c:\Users\ishaq\Desktop\\Email_Verification\email_validator.py:52: DeprecationWarning: please use dns.resolver.resolve() instead
  records = dns.resolver.query(domain[1], 'MX')
[email protected] ::: Internal Error
Traceback (most recent call last):
  File "c:\Users\ishaq\Desktop\Email_Verification\email_validator.py", line 72, in check
    server.helo(host)
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\smtplib.py", line 434, in helo
    (code, msg) = self.getreply()
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\smtplib.py", line 398, in getreply
    raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed

During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "c:\Users\ishaq\Desktop\Email_Verification\email_validator.py", line 134, in 
    main()
  File "c:\Users\ishaq\Desktop\Email_Verification\email_validator.py", line 33, in main
    check(0, email_list)
  File "c:\Users\ishaq\Desktop\Email_Verification\email_validator.py", line 86, in check
    check_position(position, email_list)
  File "c:\Users\ishaq\Desktop\FiverWork\Email_Verification\email_validator.py", line 96, in check_position
    check(new_position, email_list)
  File "c:\Users\ishaq\Desktop\Email_Verification\email_validator.py", line 52, in check
    records = dns.resolver.query(domain[1], 'MX')
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\resolver.py", line 1321, in query
    return resolve(qname, rdtype, rdclass, tcp, source,
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\resolver.py", line 1305, in resolve
    return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source,
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\resolver.py", line 1202, in resolve
    (answer, done) = resolution.query_result(response, None)
  File "C:\Users\ishaq\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\resolver.py", line 674, in query_result
    raise NoAnswer(response=answer.response)
dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: royaltybd.com. IN MX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant