avoid possible keyerror

This commit is contained in:
Nikos Kouremenos 2005-05-11 22:00:48 +00:00
parent 1353525bf2
commit 69b279d240
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ class Interface:
gajim.config.add_per('accounts', name) gajim.config.add_per('accounts', name)
for opt in array[1]: for opt in array[1]:
gajim.config.set_per('accounts', name, opt, array[1][opt]) 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['account_modification'].account_is_ok(array[0])
self.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, 'gc_config': {}} self.windows[name] = {'infos': {}, 'chats': {}, 'gc': {}, 'gc_config': {}}
self.queues[name] = {} self.queues[name] = {}