Skip to content
Snippets Groups Projects
Commit 483ccdf3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

use isinstance instead of type. fixes #2680

parent 27a6a1d7
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ def _ReceivedRegInfo(con, resp, agent):
return
df=DataForm(typ='form')
for i in resp.getQueryPayload():
if type(i)<>type(iq):
if isinstance(i, Iq):
pass
elif i.getName()=='instructions':
df.addInstructions(i.getData())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment