mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Better approach for #1320
This commit is contained in:
parent
bcb25823e6
commit
e623ee66ad
8 changed files with 11 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue