From d027597bf8cf1fed035213af3eff903775a00e7e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 28 Dec 2006 19:03:55 +0000 Subject: [PATCH] prevent TB. fixes #2843 --- src/common/passwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/passwords.py b/src/common/passwords.py index ecc44205c..a38c04692 100644 --- a/src/common/passwords.py +++ b/src/common/passwords.py @@ -40,7 +40,7 @@ class PasswordStorage(object): class SimplePasswordStorage(PasswordStorage): def get_password(self, account_name): passwd = gajim.config.get_per('accounts', account_name, 'password') - if passwd.startswith('gnomekeyring:'): + if passwd and passwd.startswith('gnomekeyring:'): return None # this is not a real password, it's a gnome keyring token else: return passwd