[Git][gajim/gajim][master] Set lower log level for password errors

Philipp Hörist gitlab at dev.gajim.org
Sat Jul 14 08:22:07 CEST 2018


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


Commits:
72ee9af7 by Philipp Hörist at 2018-07-14T08:21:43+02:00
Set lower log level for password errors

- - - - -


1 changed file:

- gajim/common/passwords.py


Changes:

=====================================
gajim/common/passwords.py
=====================================
--- a/gajim/common/passwords.py
+++ b/gajim/common/passwords.py
@@ -60,8 +60,9 @@ class SecretPasswordStorage(PasswordStorage):
         try:
             self.keyring.set_password('gajim', account_name, password)
             return True
-        except:
-            log.exception('error:')
+        except Exception as error:
+            log.warning('Save password failed')
+            log.debug(error)
             return False
 
     def get_password(self, account_name):



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/72ee9af79c79e95c05a9b1a11f5f2a7f11e088c1

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/72ee9af79c79e95c05a9b1a11f5f2a7f11e088c1
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180714/79d40b14/attachment.html>


More information about the Commits mailing list