Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntlm authentication #8029

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
Improved exc. handling for ntlm
Added to allow the finally statement in main to run.
  • Loading branch information
vmuriart committed Jan 24, 2016
commit 1436e861ee0aabf48332bf02a2e134bca69b1cc3
7 changes: 6 additions & 1 deletion pip/basecommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ def _build_session(self, options, retries=None, timeout=None):
}

if options.auth_ntlm:
session.auth = MultiDomainNtlmAuth()
try:
session.auth = MultiDomainNtlmAuth()
except InstallationError:
# Needed to allow pip to check for updates
options.auth_ntlm = False
raise

# Determine if we can prompt the user for authentication or not
session.auth.prompting = not options.no_input
Expand Down