From 69b279d2401c7a8daee510dc74f35406f62c3ef8 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Wed, 11 May 2005 22:00:48 +0000 Subject: [PATCH] avoid possible keyerror --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index d0529cb24..5c44048de 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -383,7 +383,7 @@ class Interface: gajim.config.add_per('accounts', name) for opt in array[1]: gajim.config.set_per('accounts', name, opt, array[1][opt]) - if self.windows['account_modification']: + if self.windows.has_key('account_modification'): self.windows['account_modification'].account_is_ok(array[0]) self.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, 'gc_config': {}} self.queues[name] = {}