prevent traceback when identifying stream error. Fixes #4946
This commit is contained in:
parent
5b001701f0
commit
e4029dddd6
1 changed files with 5 additions and 1 deletions
|
@ -413,7 +413,11 @@ class NodeBuilder:
|
||||||
self.check_data_buffer()
|
self.check_data_buffer()
|
||||||
if self.__depth == self._dispatch_depth:
|
if self.__depth == self._dispatch_depth:
|
||||||
if self._mini_dom.getName() == 'error':
|
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)
|
self.dispatch(self._mini_dom)
|
||||||
elif self.__depth > self._dispatch_depth:
|
elif self.__depth > self._dispatch_depth:
|
||||||
self._ptr = self._ptr.parent
|
self._ptr = self._ptr.parent
|
||||||
|
|
Loading…
Add table
Reference in a new issue