fix potential traceback. Fixes #4780

This commit is contained in:
Yann Leboulanger 2009-02-09 19:46:26 +00:00
parent beb32a3d1c
commit 89a1e55a85
1 changed files with 2 additions and 1 deletions

View File

@ -606,7 +606,8 @@ _('Without a connection, you can not browse available services'))
# self.browser._get_agent_address() would break when no browser. # self.browser._get_agent_address() would break when no browser.
addr = get_agent_address(self.jid, self.node) addr = get_agent_address(self.jid, self.node)
del gajim.interface.instances[self.account]['disco'][addr] if addr in gajim.interface.instances[self.account]['disco']:
del gajim.interface.instances[self.account]['disco'][addr]
if self.browser: if self.browser:
self.window.hide() self.window.hide()