#377: Fix crash in linkcheck builder if all parent nodes have no line number set.

This commit is contained in:
Georg Brandl 2010-04-18 09:55:38 +02:00
parent 2c8e51a17b
commit f5d52fa4f4
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Release 0.6.6 (in development)
==============================
* #377: Fix crash in linkcheck builder.
* #387: Fix the display of search results in ``dirhtml`` output.
* #376: In autodoc, fix display of parameter defaults containing

View File

@ -65,8 +65,10 @@ class CheckExternalLinksBuilder(Builder):
return
lineno = None
while lineno is None and node:
while lineno is None:
node = node.parent
if node is None:
break
lineno = node.line
if uri[0:5] == 'http:' or uri[0:6] == 'https:':