summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
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)