summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster/single.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-17 21:30:47 -0700
committerLance Stout <lancestout@gmail.com>2011-08-17 21:30:47 -0700
commit004eabf80959ebcaeddf2e15065bd4f50ad10974 (patch)
treee62c243c6b1a539a0fa71030011eb88762068b6b /sleekxmpp/roster/single.py
parent62230fc970f86b11bc74ee448e30cbe93f477e72 (diff)
downloadslixmpp-004eabf80959ebcaeddf2e15065bd4f50ad10974.tar.gz
slixmpp-004eabf80959ebcaeddf2e15065bd4f50ad10974.tar.bz2
slixmpp-004eabf80959ebcaeddf2e15065bd4f50ad10974.tar.xz
slixmpp-004eabf80959ebcaeddf2e15065bd4f50ad10974.zip
Update plugins that use Iq stanzas to work with new exceptions.
Diffstat (limited to 'sleekxmpp/roster/single.py')
-rw-r--r--sleekxmpp/roster/single.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py
index deb1ac8b..411c5d98 100644
--- a/sleekxmpp/roster/single.py
+++ b/sleekxmpp/roster/single.py
@@ -204,10 +204,8 @@ class RosterNode(object):
iq['roster']['items'] = {jid: {'name': name,
'subscription': subscription,
'groups': groups}}
- response = iq.send(block, timeout, callback)
- if response in [False, None] or isinstance(response, Iq):
- return response
- return response and response['type'] == 'result'
+
+ return iq.send(block, timeout, callback)
def presence(self, jid, resource=None):
"""