We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd6f7a commit 1fa49efCopy full SHA for 1fa49ef
src/pip/_internal/download.py
@@ -332,7 +332,7 @@ def __call__(self, req):
332
333
if username is not None or password is not None:
334
# Send the basic auth with this request
335
- req = HTTPBasicAuth(username, password)(req)
+ req = HTTPBasicAuth(username or "", password or "")(req) # Avoid passing Nonetype
336
337
# Attach a hook to handle 401 responses
338
req.register_hook("response", self.handle_401)
0 commit comments