From 2369c01cc151789307ab5efaa987724ae0d239fa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 18 Nov 2007 10:45:29 +0000 Subject: [PATCH] prevent traceback when opening accounts window --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index df497d59d..e72ed8706 100644 --- a/src/config.py +++ b/src/config.py @@ -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,