mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix typo.
This commit is contained in:
parent
6d7d1f6e50
commit
460d3fdbb7
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user