diff options
author | lovetox <philipp@hoerist.com> | 2020-03-22 20:30:40 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-22 20:30:40 +0300 |
commit | 1031b9afc7acd5606158bb5495c05202f7146217 (patch) | |
tree | 12d15197603a01ab58d0dd712d80ae9c00914af6 /nbxmpp/modules/register.py | |
parent | c1c5d310732d60a3efdb2d2dc76c36cd11dbb295 (diff) |
Register: Handle errors when requesting the register form
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, |