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 bcf754f commit e3ccf45Copy full SHA for e3ccf45
1 file changed
lib/parse/configfile.py
@@ -8,6 +8,7 @@
8
import codecs
9
10
from ConfigParser import MissingSectionHeaderError
11
+from ConfigParser import ParsingError
12
13
from lib.core.common import checkFile
14
from lib.core.common import unArrayizeValue
@@ -64,8 +65,8 @@ def configFileParser(configFile):
64
65
try:
66
config = UnicodeRawConfigParser()
67
config.readfp(configFP)
- except MissingSectionHeaderError:
68
- errMsg = "you have provided an invalid configuration file"
+ except (MissingSectionHeaderError, ParsingError), ex:
69
+ errMsg = "you have provided an invalid configuration file ('%s')" % str(ex)
70
raise SqlmapSyntaxException(errMsg)
71
72
if not config.has_section("Target"):
0 commit comments