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 @@ class Connection:
roster = {}
for jid in r:
roster[helpers.parse_jid(jid)] = r[jid]
try:
j = helpers.parse_jid(jid)
except:
print >> sys.sterr, _('Jid %s is not RFC complient. It will not be added to your roster. Use roster management tools such as http://jru.jabberstudio.org/ to remove it')
else:
roster[j] = r[jid]
# Remove or jid
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name))
......
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