mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 02:10:24 +00:00
better error message if no nameservers could be found
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2962 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
1c9aa3069a
commit
b34f4da7fe
1 changed files with 3 additions and 1 deletions
|
|
@ -591,7 +591,9 @@ class Resolver(object):
|
|||
backoff = 0.10
|
||||
while response is None:
|
||||
if len(nameservers) == 0:
|
||||
raise NoNameservers, "No DNS servers could answer the query"
|
||||
raise NoNameservers, \
|
||||
"No DNS servers %s could answer the query %s" % \
|
||||
(str(self.nameservers), str(qname))
|
||||
for nameserver in nameservers:
|
||||
timeout = self._compute_timeout(start)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue