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

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.0.7.38"
VERSION = "1.0.7.39"
REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

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)