From 73204c2d2c349b12874ac0c5bbc19dd8fd16b46b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 18 Jul 2005 22:39:59 +0000 Subject: [PATCH] prevent a TB --- src/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 8053f5531..1464ff6c5 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -655,7 +655,8 @@ class Interface: return True # renew timeout (loop for ever) state = self.sleeper.getState() for account in gajim.connections: - if not gajim.sleeper_state[account]: + if not gajim.sleeper_state.has_key(account) or \ + not gajim.sleeper_state[account]: continue if state == common.sleepy.STATE_AWAKE and \ gajim.sleeper_state[account] > 1: