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

prevent traceback when we get malformed data in adhoc process.

parent 3b1f2833
No related branches found
No related tags found
No related merge requests found
......@@ -297,7 +297,9 @@ class CommandWindow:
self.send_command(action)
def stage3_next_form(self, command):
assert isinstance(command, xmpp.Node)
if not isinstance(command, xmpp.Node):
self.stage5(error=_('Service sent malformed data'), senderror=True)
return
self.remove_pulsing()
self.sending_form_progressbar.hide()
......@@ -307,6 +309,7 @@ class CommandWindow:
elif self.sessionid != command.getAttr('sessionid'):
self.stage5(error=_('Service changed the session identifier.'),
senderror=True)
return
self.form_status = command.getAttr('status')
......
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