Patch for an Issue #1013

This commit is contained in:
Miroslav Stampar 2014-12-11 00:35:51 +01:00
parent 6d13b67822
commit 6f211f9d3e

View File

@ -71,8 +71,8 @@ def configFileParser(configFile):
try:
config = UnicodeRawConfigParser()
config.readfp(configFP)
except (MissingSectionHeaderError, ParsingError), ex:
errMsg = "you have provided an invalid configuration file ('%s')" % str(ex)
except Exception, ex:
errMsg = "you have provided an invalid and/or unreadable configuration file ('%s')" % str(ex)
raise SqlmapSyntaxException(errMsg)
if not config.has_section("Target"):