diff --git a/src/common/xmpp/features_nb.py b/src/common/xmpp/features_nb.py index ed195ceca..54ea49196 100644 --- a/src/common/xmpp/features_nb.py +++ b/src/common/xmpp/features_nb.py @@ -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())