]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
catch dns.exception.Timeout if our query times out
authorBob Halley <halley@dnspython.org>
Fri, 2 Sep 2005 05:23:10 +0000 (05:23 +0000)
committerBob Halley <halley@dnspython.org>
Fri, 2 Sep 2005 05:23:10 +0000 (05:23 +0000)
Original author: Bob Halley <halley@dnspython.org>
Date: 2004-07-31 09:58:29

dns/resolver.py

index 49a605f1a2cd9bd428d22d3c7a54ebbe7e8deb75..85fcfb916b1623740e234585217ed5d2e9cb80d2 100644 (file)
@@ -500,7 +500,7 @@ class Resolver(object):
                         else:
                             response = dns.query.udp(request, nameserver,
                                                      timeout, self.port)
-                    except socket.error:
+                    except (socket.error, dns.exception.Timeout):
                         #
                         # Communication failure or timeout.  Go to the
                         # next server