Philipp Hörist pushed to branch master at gajim / gajim
Commits:
267dd73f by Philipp Hörist at 2017-09-19T22:04:39+02:00
Catch LibSecret errors
- - - - -
1 changed file:
- gajim/common/passwords.py
Changes:
=====================================
gajim/common/passwords.py
=====================================
--- a/gajim/common/passwords.py
+++ b/gajim/common/passwords.py
@@ -80,8 +80,13 @@ class LibSecretPasswordStorage(PasswordStorage):
user = app.config.get_per('accounts', account_name, 'name')
display_name = _('XMPP account %s') % user + '@' + server
attributes = {'user': user, 'server': server, 'protocol': 'xmpp'}
- return self.Secret.password_store_sync(self.GAJIM_SCHEMA, attributes,
- self.Secret.COLLECTION_DEFAULT, display_name, password or '', None)
+ try:
+ return self.Secret.password_store_sync(
+ self.GAJIM_SCHEMA, attributes, self.Secret.COLLECTION_DEFAULT,
+ display_name, password or '', None)
+ except GLib.Error as error:
+ log.error(error)
+ return False
class SecretWindowsPasswordStorage(PasswordStorage):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/267dd73fcb53b8b604c8e8dbe9e4f6627f72448c
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/267dd73fcb53b8b604c8e8dbe9e4f6627f72448c
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