Doesn't fail if host has NO SRV record

Just catch an other exception type coming from the dns resolver that
could be raised with hosts like "anon.example.com" which just don't have
any SRV record.
This commit is contained in:
Florent Le Coz
2010-11-08 09:14:17 +08:00
committed by Lance Stout
parent 4fb77ac878
commit 9dbf246f0b
3 changed files with 2 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ import hashlib
from sleekxmpp import plugins
from sleekxmpp import stanza
from sleekxmpp.basexmpp import BaseXMPP, SRV_SUPPORT
from sleekxmpp.basexmpp import BaseXMPP
from sleekxmpp.xmlstream import XMLStream, RestartStream
from sleekxmpp.xmlstream import StanzaBase, ET
from sleekxmpp.xmlstream.matcher import *