Commits

Georg Brandl committed aa82857

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

Comments (0)

Files changed (2)

 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

sphinx/builders/linkcheck.py

             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:':