This commit is contained in:
Miroslav Stampar
2015-07-30 23:19:38 +02:00
parent 301aca57e6
commit bcb25823e6
7 changed files with 11 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ class Dump(object):
try:
self._outputFP.write(text)
except IOError, ex:
errMsg = "error occurred while writing to log file ('%s')" % ex
errMsg = "error occurred while writing to log file ('%s')" % getUnicode(ex)
raise SqlmapGenericException(errMsg)
if kb.get("multiThreadMode"):
@@ -94,7 +94,7 @@ class Dump(object):
try:
self._outputFP = openFile(self._outputFile, "ab" if not conf.flushSession else "wb")
except IOError, ex:
errMsg = "error occurred while opening log file ('%s')" % ex
errMsg = "error occurred while opening log file ('%s')" % getUnicode(ex)
raise SqlmapGenericException(errMsg)
def getOutputFile(self):