From 262652992da659d6821ab1a250de0dffe6a6beaf Mon Sep 17 00:00:00 2001 From: Jake Basile Date: Thu, 18 Jul 2013 08:25:28 -0500 Subject: [PATCH] Caught OSError when querying AAAA records. --- sleekxmpp/xmlstream/resolver.py | 4 ++++ 1 file changed, 4 insertions(+) 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: