summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/xmlstream')
-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: