Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nbxmpp
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-22 20:30:40 +0300
committerlovetox <philipp@hoerist.com>2020-03-22 20:30:40 +0300
commit1031b9afc7acd5606158bb5495c05202f7146217 (patch)
tree12d15197603a01ab58d0dd712d80ae9c00914af6 /nbxmpp
parentc1c5d310732d60a3efdb2d2dc76c36cd11dbb295 (diff)
Register: Handle errors when requesting the register form
Diffstat (limited to 'nbxmpp')
-rw-r--r--nbxmpp/modules/register.py4
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,