From 6f211f9d3e4a9558695a1ea6835f23263278fa87 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 11 Dec 2014 00:35:51 +0100 Subject: [PATCH] Patch for an Issue #1013 --- lib/parse/configfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/parse/configfile.py b/lib/parse/configfile.py index 7e1b07ad9..7f899398b 100644 --- a/lib/parse/configfile.py +++ b/lib/parse/configfile.py @@ -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"):