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

Skip to content

Commit fe58aff

Browse files
committed
Patch for an Issue #1019
1 parent 650dfe9 commit fe58aff

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,13 @@ def _saveCmdline():
18861886
config.set(family, option, value)
18871887

18881888
confFP = openFile(paths.SQLMAP_CONFIG, "wb")
1889-
config.write(confFP)
1889+
1890+
try:
1891+
config.write(confFP)
1892+
except IOError, ex:
1893+
errMsg = "something went wrong while trying "
1894+
errMsg += "to write to the configuration INI file '%s' ('%s')" % (paths.SQLMAP_CONFIG, ex)
1895+
raise SqlmapSystemException(errMsg)
18901896

18911897
infoMsg = "saved command line options on '%s' configuration file" % paths.SQLMAP_CONFIG
18921898
logger.info(infoMsg)

0 commit comments

Comments
 (0)