From b482d3565659d77359b983400085692130485030 Mon Sep 17 00:00:00 2001 From: calvin Date: Tue, 6 Dec 2005 11:47:38 +0000 Subject: [PATCH] fix exception name and add 0.0.0.0 to localhost list git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2941 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/dns/resolver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linkcheck/dns/resolver.py b/linkcheck/dns/resolver.py index 2c4a8006..d560115b 100644 --- a/linkcheck/dns/resolver.py +++ b/linkcheck/dns/resolver.py @@ -300,6 +300,7 @@ class Resolver(object): 'localhost', 'loopback', '127.0.0.1', + '0.0.0.0', '::1', 'ip6-localhost', 'ip6-loopback', @@ -738,5 +739,5 @@ def zone_for_name(name, rdclass=linkcheck.dns.rdataclass.IN, except (linkcheck.dns.resolver.NXDOMAIN, linkcheck.dns.resolver.NoAnswer): try: name = name.parent() - except NoParent: - raise NoRootSoa + except linkcheck.dns.name.NoParent: + raise NoRootSOA