various fixes in previous commit

This commit is contained in:
Nikos Kouremenos 2005-11-24 21:11:44 +00:00
parent a6643b103b
commit 89952468ef
1 changed files with 4 additions and 4 deletions

View File

@ -1267,16 +1267,16 @@ class Connection:
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))