builders/linkcheck: include "experimental" HTTP 308 as "permanently"

Also remove redundant "default" case.
This commit is contained in:
Georg Brandl committed 2019-11-30 17:07:25 +01:00
1 parent 0d80cff43c
commit 3398194135
1 file changed
+1 -1
+1 -1
View File
@@ -255,7 +255,7 @@ class CheckExternalLinksBuilder(Builder):
302: ('with Found', purple),
303: ('with See Other', purple),
307: ('temporarily', turquoise),
0: ('with unknown code', purple),
308: ('permanently', darkred),
}[code]
except KeyError:
text, color = ('with unknown code', purple)