prevent traceback when opening accounts window

This commit is contained in:
Yann Leboulanger 2007-11-18 10:45:29 +00:00
parent 7590a57f66
commit 2369c01cc1
1 changed files with 2 additions and 2 deletions

View File

@ -1408,8 +1408,8 @@ class AccountsWindow:
gajim.connections[gajim.ZEROCONF_ACC_NAME].update_details()
return
elif self.need_relogin and gajim.connections[self.current_account].\
connected > 0:
elif self.need_relogin and self.current_account and \
gajim.connections[self.current_account].connected > 0:
def login(account, show_before, status_before):
''' login with previous status'''
# first make sure connection is really closed,