minor fix

This commit is contained in:
Bernardo Damele 2015-02-18 10:13:28 +00:00
parent 560bc7cc28
commit daa8e0d8c5

View File

@ -10,6 +10,7 @@ import os
from xml.etree import ElementTree as et
from lib.core.data import conf
from lib.core.data import logger
from lib.core.data import paths
from lib.core.datatype import AttribDict
from lib.core.exception import SqlmapInstallationException
@ -88,6 +89,8 @@ def loadPayloads():
for payloadFile in payloadFiles:
payloadFilePath = os.path.join(paths.SQLMAP_XML_PAYLOADS_PATH, payloadFile)
#logger.debug("Parsing payloads from file '%s'" % payloadFile)
try:
doc = et.parse(payloadFilePath)
except Exception, ex:
@ -96,5 +99,5 @@ def loadPayloads():
errMsg += "sure that you haven't made any changes to it"
raise SqlmapInstallationException, errMsg
root = doc.getroot()
parseXmlNode(root)
root = doc.getroot()
parseXmlNode(root)