mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch for an Issue #1013
This commit is contained in:
parent
6d13b67822
commit
6f211f9d3e
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user