Commit 89952468 authored by nkour's avatar nkour

various fixes in previous commit

parent a6643b10
......@@ -1267,16 +1267,16 @@ def _MucErrorCB(self, con, iq_obj):
def _getRosterCB(self, con, iq_obj):
if not self.connection:
return
r = self.connection.getRoster().getRaw()
raw_roster = self.connection.getRoster().getRaw()
roster = {}
for jid in r:
for jid in raw_roster:
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')
print >> sys.sterr, _('Jid %s is not RFC compliant. It will not be added to your roster. Use roster management tools such as http://jru.jabberstudio.org/ to remove it') % jid
else:
roster[j] = r[jid]
roster[j] = raw_roster[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