Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
0a1c20d9 by wurstsalat at 2024-04-21T16:06:39+02:00
fix: Keyring: Catch more exceptions for delete_password
Fixes #11793
- - - - -
1 changed file:
- gajim/common/passwords.py
Changes:
=====================================
gajim/common/passwords.py
=====================================
@@ -122,14 +122,18 @@ def delete_password(account_name: str) -> None:
account_jid = app.get_jid_from_account(account_name)
+ keyring_errors = (
+ keyring.errors.PasswordDeleteError,
+ keyring.errors.InitError
+ )
try:
_interface.backend.delete_password('gajim', account_name)
- except keyring.errors.PasswordDeleteError:
+ except keyring_errors:
pass
try:
return _interface.backend.delete_password('gajim', account_jid)
- except keyring.errors.PasswordDeleteError as error:
+ except keyring_errors as error:
log.warning('Removing password failed: %s', error)
except Exception:
log.exception('Removing password failed')
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0a1c20d97b85bf91f424afd7f7f18c698f739777
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0a1c20d97b85bf91f424afd7f7f18c698f739777
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]