use isinstance instead of type. fixes #2680
This commit is contained in:
parent
27a6a1d7f1
commit
483ccdf35a
|
@ -130,7 +130,7 @@ def _ReceivedRegInfo(con, resp, agent):
|
||||||
return
|
return
|
||||||
df=DataForm(typ='form')
|
df=DataForm(typ='form')
|
||||||
for i in resp.getQueryPayload():
|
for i in resp.getQueryPayload():
|
||||||
if type(i)<>type(iq):
|
if isinstance(i, Iq):
|
||||||
pass
|
pass
|
||||||
elif i.getName()=='instructions':
|
elif i.getName()=='instructions':
|
||||||
df.addInstructions(i.getData())
|
df.addInstructions(i.getData())
|
||||||
|
|
Loading…
Reference in New Issue