From b2c4a3b2478e2d5d3d50d025d9ff90fde299f0b0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 17 Jun 2016 16:54:23 +0200 Subject: [PATCH] Fixes #1960 --- lib/core/option.py | 4 ++-- lib/core/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 3318e09bd..a533ed951 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -914,8 +914,8 @@ def _setTamperingFunctions(): try: module = __import__(filename[:-3].encode(sys.getfilesystemencoding())) - except (ImportError, SyntaxError), msg: - raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], msg)) + except (ImportError, SyntaxError), ex: + raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], getSafeExString(ex))) priority = PRIORITY.NORMAL if not hasattr(module, '__priority__') else module.__priority__ diff --git a/lib/core/settings.py b/lib/core/settings.py index 52a53f7d7..d5eb0cb76 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.6.40" +VERSION = "1.0.6.41" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")