Skip to content

Commit

Permalink
Set keyring correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed Nov 9, 2022
1 parent f5c96b1 commit 43abcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/network/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def set_password(cls, service_name: str, username: str, password: str) -> None:
try:
import keyring
except ImportError:
keyring = None # type: ignore[assignment]
if shutil.which("keyring") is not None:
keyring = KeyRingCli # type: ignore[assignment]
keyring = None # type: ignore[assignment]
except Exception as exc:
logger.warning(
"Keyring is skipped due to an exception: %s",
Expand Down

0 comments on commit 43abcf0

Please sign in to comment.