[cookies] Fix bug when keyring is unspecified

Closes #2167
pull/2171/head
pukkandan 3 years ago
parent 042931a507
commit 2c539d493a
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -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:

Loading…
Cancel
Save