mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Better approach for #1320
This commit is contained in:
@@ -74,7 +74,7 @@ class Dump(object):
|
||||
try:
|
||||
self._outputFP.write(text)
|
||||
except IOError, ex:
|
||||
errMsg = "error occurred while writing to log file ('%s')" % getUnicode(ex)
|
||||
errMsg = "error occurred while writing to log file ('%s')" % ex.message
|
||||
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')" % getUnicode(ex)
|
||||
errMsg = "error occurred while opening log file ('%s')" % ex.message
|
||||
raise SqlmapGenericException(errMsg)
|
||||
|
||||
def getOutputFile(self):
|
||||
|
||||
Reference in New Issue
Block a user