Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit daa8e0d

Browse files
committed
minor fix
1 parent 560bc7c commit daa8e0d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/parse/payloads.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from xml.etree import ElementTree as et
1111

1212
from lib.core.data import conf
13+
from lib.core.data import logger
1314
from lib.core.data import paths
1415
from lib.core.datatype import AttribDict
1516
from lib.core.exception import SqlmapInstallationException
@@ -88,6 +89,8 @@ def loadPayloads():
8889
for payloadFile in payloadFiles:
8990
payloadFilePath = os.path.join(paths.SQLMAP_XML_PAYLOADS_PATH, payloadFile)
9091

92+
#logger.debug("Parsing payloads from file '%s'" % payloadFile)
93+
9194
try:
9295
doc = et.parse(payloadFilePath)
9396
except Exception, ex:
@@ -96,5 +99,5 @@ def loadPayloads():
9699
errMsg += "sure that you haven't made any changes to it"
97100
raise SqlmapInstallationException, errMsg
98101

99-
root = doc.getroot()
100-
parseXmlNode(root)
102+
root = doc.getroot()
103+
parseXmlNode(root)

0 commit comments

Comments
 (0)