fix traceback when not using gnome keyring. fixes #3319

This commit is contained in:
Yann Leboulanger 2007-07-24 08:20:06 +00:00
parent 5040656f3e
commit 85e040e574
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ class GnomePasswordStorage(PasswordStorage):
display_name, attributes, password, update)
token = 'gnomekeyring:%i' % auth_token
gajim.config.set_per('accounts', account_name, 'password', token)
gajim.connections[account_name].password = password
if gajim.connections.has_key(account_name):
gajim.connections[account_name].password = password
storage = None
def get_storage():