Commit a0c71551 authored by mathieui's avatar mathieui

Fix a traceback with broken roster items

only happens with buggy servers (hello ejabberd)
parent cf37785e
......@@ -3378,7 +3378,12 @@ class Core(object):
The roster was received.
for item in iq['roster']:
jid = item['jid']
except InvalidJID:
jid = item._get_attr('jid', '')
log.error('Invalid JID: "%s"', jid, exc_info=True)
if item['subscription'] == 'remove':
del roster[jid]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment