From 319adef8c41cea67999de52caf5e8d7876fe5e80 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 21 May 2010 13:19:50 +0000 Subject: [PATCH] Minor adjustment --- lib/core/common.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index ec52e9650..98fa5af27 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1114,11 +1114,10 @@ def profile(profileOutputFile=None, imageOutputFile=None): graphScriptPath = os.path.join(paths.SQLMAP_EXTRAS_PATH, 'gprof2dot', 'gprof2dot.py') process = execute('%s %s -f pstats %s | dot -Tpng -o %s' % (sys.executable, graphScriptPath, profileOutputFile, imageOutputFile), shell=True, stdout=None, stderr=PIPE) - pollProcess(process) - payloadStderr = process.communicate()[1] + processStderr = process.communicate()[1] - if payloadStderr or not os.path.exists(imageOutputFile): - errMsg = "there was an error while converting ('%s'), " % payloadStderr.strip() + if processStderr or not os.path.exists(imageOutputFile): + errMsg = "there was an error while converting ('%s'), " % processStderr.strip() errMsg += "but you can still find raw profile data " errMsg += "inside file '%s'" % profileOutputFile logger.error(errMsg)