mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#377: Fix crash in linkcheck builder if all parent nodes have no line number set.
This commit is contained in:
parent
2c8e51a17b
commit
f5d52fa4f4
2
CHANGES
2
CHANGES
@ -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
|
||||
|
@ -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:':
|
||||
|
Loading…
Reference in New Issue
Block a user