comparison src/plugins/plugin_xep_0060.py @ 2423:e3edbccd26d7

XEP-0060: fixed bad attribute in getItems
author Goffi <goffi@goffi.org>
date Wed, 08 Nov 2017 07:47:01 +0100
parents 8b37a62336c3
children c6d859df4b27
comparison
equal deleted inserted replaced
2422:5425cf18929b 2423:e3edbccd26d7
377 def subscribeEb(failure, service, node): 377 def subscribeEb(failure, service, node):
378 failure.trap(error.StanzaError) 378 failure.trap(error.StanzaError)
379 log.warning(u"Could not subscribe to node {} on service {}: {}".format(node, unicode(service), unicode(failure.value))) 379 log.warning(u"Could not subscribe to node {} on service {}: {}".format(node, unicode(service), unicode(failure.value)))
380 380
381 def doSubscribe(items): 381 def doSubscribe(items):
382 self.subscribe(service, node, profile_key=client.profile_key).addErrback(subscribeEb, service, node) 382 self.subscribe(service, node, profile_key=client.profile).addErrback(subscribeEb, service, node)
383 return items 383 return items
384 384
385 if subscribe: 385 if subscribe:
386 d.addCallback(doSubscribe) 386 d.addCallback(doSubscribe)
387 387