From ac4a2c947cbab2c601f0fb3370c8e9b808879eac Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 18 Nov 2004 19:41:37 +0000
Subject: [PATCH] little BugFix : when we want to remove an invalide contact,
 don't crash

---
 core/core.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/core.py b/core/core.py
index fb3a209313..7c98ee995c 100644
--- a/core/core.py
+++ b/core/core.py
@@ -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)
-- 
GitLab