little BugFix : when we want to remove an invalide contact, don't crash

This commit is contained in:
Yann Leboulanger 2004-11-18 19:41:37 +00:00
parent fcee8b2afd
commit ac4a2c947c
1 changed files with 2 additions and 0 deletions

View File

@ -771,6 +771,8 @@ class GajimCore:
con.removeRosterItem(ev[2])
con.requestRegInfo(ev[2])
agent_info = con.getRegInfo()
if not agent_info:
return
key = agent_info['key']
iq = common.jabber.Iq(to=ev[2], type="set")
q = iq.setQuery(common.jabber.NS_REGISTER)