Update related to the #2912

This commit is contained in:
Miroslav Stampar
2018-02-06 09:50:36 +01:00
parent 9e75bb7f68
commit aebfb7d597
3 changed files with 4 additions and 4 deletions

View File

@@ -931,7 +931,7 @@ def _setTamperingFunctions():
try:
module = __import__(filename[:-3].encode(sys.getfilesystemencoding() or UNICODE_ENCODING))
except (ImportError, SyntaxError), ex:
except Exception, ex:
raise SqlmapSyntaxException("cannot import tamper script '%s' (%s)" % (filename[:-3], getSafeExString(ex)))
priority = PRIORITY.NORMAL if not hasattr(module, "__priority__") else module.__priority__