Skip to content
Snippets Groups Projects
Commit d027597b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent TB. fixes #2843

parent 70bf104c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment