diff --git a/sphinx/builder.py b/sphinx/builder.py index 1ba62e552..7e4908f6f 100644 --- a/sphinx/builder.py +++ b/sphinx/builder.py @@ -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))