summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-10-25 18:48:07 +0900
committerGitHub <noreply@github.com>2020-10-25 18:48:07 +0900
commit2118ff1419a1c6d41cd88696908135d893901b80 (patch)
tree851f9f495eb88be22ab7af9d6fff1e82b7628f38
parenteececbfe31aab620da6cf90e5855b8e0159d7427 (diff)
parent72985c250b55a9dc07141e9a110937df24b16373 (diff)
downloadsphinx-git-3.2.x.tar.gz
Merge pull request #8323 from TheTripleV/patch-13.2.x
Linkcheck: Fix broken url not reporting error
-rw-r--r--sphinx/builders/linkcheck.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py
index 9b54afc7c..7ea1259b7 100644
--- a/sphinx/builders/linkcheck.py
+++ b/sphinx/builders/linkcheck.py
@@ -226,6 +226,7 @@ class CheckExternalLinksBuilder(Builder):
if rex.match(uri):
return 'ignored', '', 0
else:
+ self.broken[uri] = ''
return 'broken', '', 0
elif uri in self.good:
return 'working', 'old', 0