Fixes #2060 (ParseError has been added in Python 2.7)

This commit is contained in:
Miroslav Stampar
2016-07-23 15:27:25 +02:00
parent 7cca56edfa
commit 9105f259cd
3 changed files with 4 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
row.append(child.attrib.get(column, NULL))
retVal += "%s%s%s" % (kb.chars.start, kb.chars.delimiter.join(row), kb.chars.stop)
except xml.etree.ElementTree.ParseError:
except:
pass
else:
retVal = getUnicode(retVal)