Make sure that the id parameter used in xmpp.makeIq is converted to a string.
Otherwise, SleekXMPP will barf on trying to serialize an integer when it expects text.
This commit is contained in:
parent
01e8040a07
commit
f5cae85af5
@ -152,7 +152,7 @@ class basexmpp(object):
|
|||||||
return waitfor.wait(timeout)
|
return waitfor.wait(timeout)
|
||||||
|
|
||||||
def makeIq(self, id=0, ifrom=None):
|
def makeIq(self, id=0, ifrom=None):
|
||||||
return self.Iq().setValues({'id': id, 'from': ifrom})
|
return self.Iq().setValues({'id': str(id), 'from': ifrom})
|
||||||
|
|
||||||
def makeIqGet(self, queryxmlns = None):
|
def makeIqGet(self, queryxmlns = None):
|
||||||
iq = self.Iq().setValues({'type': 'get'})
|
iq = self.Iq().setValues({'type': 'get'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user