Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 650dfe9 commit fe58affCopy full SHA for fe58aff
1 file changed
lib/core/option.py
@@ -1886,7 +1886,13 @@ def _saveCmdline():
1886
config.set(family, option, value)
1887
1888
confFP = openFile(paths.SQLMAP_CONFIG, "wb")
1889
- config.write(confFP)
+
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)
1896
1897
infoMsg = "saved command line options on '%s' configuration file" % paths.SQLMAP_CONFIG
1898
logger.info(infoMsg)
0 commit comments