summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/resolver.py
diff options
context:
space:
mode:
authorJake Basile <me@jakebasile.com>2013-07-18 08:25:28 -0500
committerJake Basile <me@jakebasile.com>2013-07-18 08:25:28 -0500
commit262652992da659d6821ab1a250de0dffe6a6beaf (patch)
tree6c70e681f535ac8962be55d44624b39990e46590 /sleekxmpp/xmlstream/resolver.py
parenteb63825dfd3a0435ff5168c7fa6e56ef628ebf11 (diff)
downloadslixmpp-262652992da659d6821ab1a250de0dffe6a6beaf.tar.gz
slixmpp-262652992da659d6821ab1a250de0dffe6a6beaf.tar.bz2
slixmpp-262652992da659d6821ab1a250de0dffe6a6beaf.tar.xz
slixmpp-262652992da659d6821ab1a250de0dffe6a6beaf.zip
Caught OSError when querying AAAA records.
Diffstat (limited to 'sleekxmpp/xmlstream/resolver.py')
-rw-r--r--sleekxmpp/xmlstream/resolver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/resolver.py b/sleekxmpp/xmlstream/resolver.py
index 16f8a7ad..75ba50d1 100644
--- a/sleekxmpp/xmlstream/resolver.py
+++ b/sleekxmpp/xmlstream/resolver.py
@@ -210,6 +210,10 @@ def get_AAAA(host, resolver=None):
log.debug("DNS: Error retreiving AAAA address " + \
"info for %s." % host)
return []
+ except OSError:
+ log.debug("DNS: Error retreiving AAAA address " + \
+ "info for %s." % host)
+ return []
# Using dnspython:
try: