Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Dec 27, 2012
1 parent 6ae4590 commit 127b880
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
@@ -1,4 +1,4 @@
* text eol=lf
*.py text eol=lf

*_ binary
*.dll binary
Expand All @@ -9,3 +9,5 @@
*.x32 binary
*.x64 binary
*.exe binary
*.sln binary
*.vcproj binary
10 changes: 5 additions & 5 deletions lib/request/basicauthhandler.py
Expand Up @@ -29,11 +29,11 @@ def http_error_auth_reqed(self, auth_header, host, req, headers):
self.retried_req.add(hash(req))
self.retried_count = 0
else:
if self.retried_count > 5:
raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed",
headers, None)
else:
self.retried_count += 1
if self.retried_count > 5:
raise urllib2.HTTPError(req.get_full_url(), 401, "basic auth failed",
headers, None)
else:
self.retried_count += 1

return urllib2.HTTPBasicAuthHandler.http_error_auth_reqed(
self, auth_header, host, req, headers)

0 comments on commit 127b880

Please sign in to comment.