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

Skip to content

Commit ecbba4e

Browse files
committed
Patch for an Issue #1030
1 parent e17e703 commit ecbba4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/target.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def _createFilesDir():
519519
except OSError, ex:
520520
tempDir = tempfile.mkdtemp(prefix="sqlmapfiles")
521521
warnMsg = "unable to create files directory "
522-
warnMsg += "'%s' (%s). " % (conf.filePath, ex)
522+
warnMsg += "'%s' (%s). " % (conf.filePath, getUnicode(ex))
523523
warnMsg += "Using temporary directory '%s' instead" % tempDir
524524
logger.warn(warnMsg)
525525

@@ -541,7 +541,7 @@ def _createDumpDir():
541541
except OSError, ex:
542542
tempDir = tempfile.mkdtemp(prefix="sqlmapdump")
543543
warnMsg = "unable to create dump directory "
544-
warnMsg += "'%s' (%s). " % (conf.dumpPath, ex)
544+
warnMsg += "'%s' (%s). " % (conf.dumpPath, getUnicode(ex))
545545
warnMsg += "Using temporary directory '%s' instead" % tempDir
546546
logger.warn(warnMsg)
547547

@@ -576,7 +576,7 @@ def _createTargetDirs():
576576
errMsg += "create temporary files and/or directories"
577577
raise SqlmapGenericException(errMsg)
578578
warnMsg = "unable to create regular output directory "
579-
warnMsg += "'%s' (%s). " % (paths.SQLMAP_OUTPUT_PATH, ex)
579+
warnMsg += "'%s' (%s). " % (paths.SQLMAP_OUTPUT_PATH, getUnicode(ex))
580580
warnMsg += "Using temporary directory '%s' instead" % tempDir
581581
logger.warn(warnMsg)
582582

0 commit comments

Comments
 (0)