Bugfix: list index out of range when opening service discovery
Fixes #9301
This commit is contained in:
parent
9dd747dfe5
commit
f91408fbaf
|
@ -1569,6 +1569,9 @@ class ToplevelAgentBrowser(AgentBrowser):
|
|||
|
||||
def _update_info(self, iter_, jid, node, identities, features, data):
|
||||
addr = get_agent_address(jid, node)
|
||||
if not identities:
|
||||
descr = "<b>%s</b>" % addr
|
||||
else:
|
||||
name = identities[0].get('name', '')
|
||||
if name:
|
||||
descr = "<b>%s</b>\n%s" % (name, addr)
|
||||
|
|
Loading…
Reference in New Issue