Commit 8a821dd9 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #1894 from ataylor284/bad-auth-message

Add info message on package index auth error 
parents 25edd195 b2ab6f7c
......@@ -349,6 +349,8 @@ class PackageIndex(Environment):
f = self.open_url(url, tmpl % url)
if f is None:
return
if isinstance(f, urllib.error.HTTPError) and f.code == 401:
self.info("Authentication error: %s" % f.msg)
self.fetched_urls[f.url] = True
if 'html' not in f.headers.get('content-type', '').lower():
f.close() # not html, we can't process it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment