prevent TB. fixes #2843

This commit is contained in:
Yann Leboulanger 2006-12-28 19:03:55 +00:00
parent 70bf104cfc
commit d027597bf8
1 changed files with 1 additions and 1 deletions

View File

@ -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