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

prevent traceback when identifying stream error. Fixes #4946

parent 5b001701
No related branches found
No related tags found
No related merge requests found
......@@ -413,7 +413,11 @@ class NodeBuilder:
self.check_data_buffer()
if self.__depth == self._dispatch_depth:
if self._mini_dom.getName() == 'error':
self.streamError = self._mini_dom.getChildren()[0].getName()
children = self._mini_dom.getChildren()
if children:
self.streamError = children[0].getName()
else:
self.streamError = self._mini_dom.getData()
self.dispatch(self._mini_dom)
elif self.__depth > self._dispatch_depth:
self._ptr = self._ptr.parent
......
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