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

Skip to content

Commit 319adef

Browse files
committed
Minor adjustment
1 parent 050015d commit 319adef

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,11 +1114,10 @@ def profile(profileOutputFile=None, imageOutputFile=None):
11141114

11151115
graphScriptPath = os.path.join(paths.SQLMAP_EXTRAS_PATH, 'gprof2dot', 'gprof2dot.py')
11161116
process = execute('%s %s -f pstats %s | dot -Tpng -o %s' % (sys.executable, graphScriptPath, profileOutputFile, imageOutputFile), shell=True, stdout=None, stderr=PIPE)
1117-
pollProcess(process)
1118-
payloadStderr = process.communicate()[1]
1117+
processStderr = process.communicate()[1]
11191118

1120-
if payloadStderr or not os.path.exists(imageOutputFile):
1121-
errMsg = "there was an error while converting ('%s'), " % payloadStderr.strip()
1119+
if processStderr or not os.path.exists(imageOutputFile):
1120+
errMsg = "there was an error while converting ('%s'), " % processStderr.strip()
11221121
errMsg += "but you can still find raw profile data "
11231122
errMsg += "inside file '%s'" % profileOutputFile
11241123
logger.error(errMsg)

0 commit comments

Comments
 (0)