prevent TB. fixes #2843
This commit is contained in:
parent
70bf104cfc
commit
d027597bf8
|
@ -40,7 +40,7 @@ class PasswordStorage(object):
|
||||||
class SimplePasswordStorage(PasswordStorage):
|
class SimplePasswordStorage(PasswordStorage):
|
||||||
def get_password(self, account_name):
|
def get_password(self, account_name):
|
||||||
passwd = gajim.config.get_per('accounts', account_name, 'password')
|
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
|
return None # this is not a real password, it's a gnome keyring token
|
||||||
else:
|
else:
|
||||||
return passwd
|
return passwd
|
||||||
|
|
Loading…
Reference in New Issue