do not fail if password is None and we use GnomeKeyring

This commit is contained in:
Nikos Kouremenos 2006-10-07 11:35:44 +00:00
parent 16d062c9b7
commit 4797fcce88
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ class GnomePasswordStorage(object):
def get_password(self, account_name):
conf = gajim.config.get_per('accounts', account_name, 'password')
if conf is None:
return None
try:
unused, auth_token = conf.split('gnomekeyring:')
auth_token = int(auth_token)