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
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class basexmpp(object):
|
|||
return waitfor.wait(timeout)
|
||||
|
||||
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):
|
||||
iq = self.Iq().setValues({'type': 'get'})
|
||||
|
|
Loading…
Reference in a new issue