mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
Fix typo.
This commit is contained in:
1 parent
6d7d1f6e50
commit
460d3fdbb7
1 file changed
+1
-1
+1
-1
@@ -977,7 +977,7 @@ class CheckExternalLinksBuilder(Builder):
|
||||
f = urlopen(uri)
|
||||
f.close()
|
||||
except HTTPError, err:
|
||||
if err.code == 403 and uri.startwith('http://en.wikipedia.org/'):
|
||||
if err.code == 403 and uri.startswith('http://en.wikipedia.org/'):
|
||||
# Wikipedia blocks requests from urllib User-Agent
|
||||
return 0
|
||||
return (2, str(err))
|
||||
|
||||
Reference in new issue
Block a user