From 2c539d493a4fa69ac89e77bacc7497e0b2d72426 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 30 Dec 2021 08:15:48 +0530 Subject: [PATCH] [cookies] Fix bug when keyring is unspecified Closes #2167 --- yt_dlp/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py index 74e133bc9..d376d1460 100644 --- a/yt_dlp/cookies.py +++ b/yt_dlp/cookies.py @@ -790,7 +790,7 @@ def _get_linux_keyring_password(browser_keyring_name, keyring, logger): # Chromium supports a flag: --password-store= 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: