Commit a6643b10 authored by Yann Leboulanger's avatar Yann Leboulanger

print an error and don't crash when we get a non-RFC-complient jid

parent 8c3d0c80
......@@ -1271,7 +1271,12 @@ def _getRosterCB(self, con, iq_obj):
roster = {}
for jid in r:
roster[helpers.parse_jid(jid)] = r[jid]
j = helpers.parse_jid(jid)
print >> sys.sterr, _('Jid %s is not RFC complient. It will not be added to your roster. Use roster management tools such as to remove it')
roster[j] = r[jid]
# Remove or jid
our_jid = helpers.parse_jid(gajim.get_jid_from_account(
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