Error listing transport services
The jabber server that I use was raising this exception while listing transports: /usr/lib/python2.4/site-packages/pygtk.py: inconsistent use of tabs and spaces in indentation /usr/share/gajim/src/roster_window.py:2047: GtkWarning: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed LaunchpadIntegration.add_items(widget,1,True,False) An error occurred while looking up _xmpp-client._tcp.im.sapo.pt Traceback (most recent call last): File "./gajim.py", line 1000, in process_connections gajim.mutex_events_for_ui.lock(self.exec_event, account) File "/usr/lib/python2.4/mutex.py", line 41, in lock function(argument) File "./gajim.py", line 984, in exec_event self.handlersev[0] File "./gajim.py", line 520, in handle_event_agent_info array[2], array[3]) File "/usr/share/gajim/src/config.py", line 2238, in agent_info self.agent_info_items(agent, '', items, False) File "/usr/share/gajim/src/config.py", line 2226, in agent_info_items iter_child = model.append(iter, (name, item['jid'], node)) KeyError: 'jid'
What I did to fix it was just check if the dict has the 'jid' first and continue the loop (skipping it) in case it doesn't.