From cd7cd30b4c5c46c4912db2970993bcd5160a36eb Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 18 Aug 2011 00:47:07 -0700 Subject: Fix exceptions for Python3 --- sleekxmpp/xmlstream/xmlstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/xmlstream') diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index b090beae..6c2c5aa5 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -662,7 +662,7 @@ class XMLStream(object): if DNSPYTHON: try: answers = dns.resolver.query(domain, dns.rdatatype.A) - except dns.resolver.NXDOMAIN, dns.resolver.NoAnswer: + except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer): log.warning("No A records for %s" % domain) except dns.exception.Timeout: log.warning("DNS resolution timed out for A record of %s" % domain) -- cgit v1.2.3