diff options
Diffstat (limited to 'nbxmpp/modules/register.py')
-rw-r--r-- | nbxmpp/modules/register.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nbxmpp/modules/register.py b/nbxmpp/modules/register.py index 4928a1f..710246a 100644 --- a/nbxmpp/modules/register.py +++ b/nbxmpp/modules/register.py @@ -59,8 +59,10 @@ class Register(BaseModule): @callback def _on_register_form(self, stanza): - query = stanza.getQuery() + if not isResultNode(stanza): + return raise_error(self._log.info, stanza) + query = stanza.getQuery() instructions = query.getTagData('instructions') or None data = RegisterData(instructions=instructions, |