diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-18 00:47:07 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-18 00:47:07 -0700 |
commit | cd7cd30b4c5c46c4912db2970993bcd5160a36eb (patch) | |
tree | e25368a1eb208520050e9e03c18ac4763c2ef3b1 /sleekxmpp/xmlstream/xmlstream.py | |
parent | 4ea22ff69bac4b619b1eeb918c67a209f6e953ee (diff) | |
download | slixmpp-cd7cd30b4c5c46c4912db2970993bcd5160a36eb.tar.gz slixmpp-cd7cd30b4c5c46c4912db2970993bcd5160a36eb.tar.bz2 slixmpp-cd7cd30b4c5c46c4912db2970993bcd5160a36eb.tar.xz slixmpp-cd7cd30b4c5c46c4912db2970993bcd5160a36eb.zip |
Fix exceptions for Python3
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 2 |
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) |