[Twisted-Python] Re: DNSQueryRefusedError question

Alvin Delagon adelagon at gmail.com
Mon May 5 04:03:40 EDT 2008


Let me rephrase, the exception comes from a code that looks like this:

calc = twisted.relaymanager.MXCalculator()
calc.getMX("gmail.com").addCallback(sendEmail, mail)

def sendEmail(mail):
.
.
.

It seems that the failure comes from twited.relaymanager.MXCalculator.

On Mon, May 5, 2008 at 3:32 PM, Alvin Delagon <adelagon at gmail.com> wrote:

> Can anyone explain what is causing this exception?
>
> twisted.names.error.DNSQueryRefusedError: <twisted.names.dns.Message
> instance at 0xb78470cc>
>
> I'm using twisted.mail.smtp which subclasses twisted.names.dns. I keep
> getting this failure during smtp.sendmail(). Thank you in advance. :)
>
> ---
> Alvin Delagon
>
> --
> http://www.alvinatorsplayground.blogspot.com/




-- 
http://www.alvinatorsplayground.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20080505/7f95a1e7/attachment.htm 


More information about the Twisted-Python mailing list