various fixes in previous commit
This commit is contained in:
parent
a6643b103b
commit
89952468ef
1 changed files with 4 additions and 4 deletions
|
@ -1267,16 +1267,16 @@ class Connection:
|
||||||
def _getRosterCB(self, con, iq_obj):
|
def _getRosterCB(self, con, iq_obj):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
return
|
return
|
||||||
r = self.connection.getRoster().getRaw()
|
raw_roster = self.connection.getRoster().getRaw()
|
||||||
|
|
||||||
roster = {}
|
roster = {}
|
||||||
for jid in r:
|
for jid in raw_roster:
|
||||||
try:
|
try:
|
||||||
j = helpers.parse_jid(jid)
|
j = helpers.parse_jid(jid)
|
||||||
except:
|
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:
|
else:
|
||||||
roster[j] = r[jid]
|
roster[j] = raw_roster[jid]
|
||||||
|
|
||||||
# Remove or jid
|
# Remove or jid
|
||||||
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name))
|
our_jid = helpers.parse_jid(gajim.get_jid_from_account(self.name))
|
||||||
|
|
Loading…
Add table
Reference in a new issue