From 1a93a187f0d5216d20ef0b40d08b93372a5e717d Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sun, 6 Nov 2011 08:33:03 -0800 Subject: Fix a crash when removing a contact. Original author: louiz --- sleekxmpp/roster/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/roster/item.py b/sleekxmpp/roster/item.py index 9980b3b4..1520f770 100644 --- a/sleekxmpp/roster/item.py +++ b/sleekxmpp/roster/item.py @@ -224,7 +224,7 @@ class RosterItem(object): if self['to']: p = self.xmpp.Presence() p['to'] = self.jid - p['type'] = ['unsubscribe'] + p['type'] = 'unsubscribe' if self.xmpp.is_component: p['from'] = self.owner p.send() -- cgit v1.2.3