Philipp Hörist pushed to branch master at gajim / gajim


Commits:
172725d1 by Philipp Hörist at 2019-10-19T13:51:20Z
Passwords: Improve log message in case of deletion error

Fixes #9865

- - - - -


1 changed file:

- gajim/common/passwords.py


Changes:

=====================================
gajim/common/passwords.py
=====================================
@@ -81,9 +81,11 @@ class SecretPasswordStorage(PasswordStorage):
         log.info('Remove password from keyring')
         try:
             return self.keyring.delete_password('gajim', account_name)
+        except keyring.errors.PasswordDeleteError as error:
+            log.warning('Removing password failed: %s', error)
         except Exception:
-            log.exception('Remove password failed')
-            return
+            log.exception('Removing password failed')
+
 
 class PasswordStorageManager(PasswordStorage):
     """Access all the implemented password storage backends, knowing which ones



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/172725d18c5e0bea540605c7b1a8da047eeff574

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/172725d18c5e0bea540605c7b1a8da047eeff574
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to