Skip to content

Commit

Permalink
[cookies] Fix bug when keyring is unspecified
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Dec 30, 2021
1 parent 042931a commit 2c539d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def _get_linux_keyring_password(browser_keyring_name, keyring, logger):
# Chromium supports a flag: --password-store=<basic|gnome|kwallet> so the automatic detection
# will not be sufficient in all cases.

keyring = _LinuxKeyring[keyring] or _choose_linux_keyring(logger)
keyring = _LinuxKeyring[keyring] if keyring else _choose_linux_keyring(logger)
logger.debug(f'Chosen keyring: {keyring.name}')

if keyring == _LinuxKeyring.KWALLET:
Expand Down

0 comments on commit 2c539d4

Please sign in to comment.