Fix for an Issue #157

This commit is contained in:
Miroslav Stampar
2012-08-21 14:34:19 +02:00
parent 80120e849f
commit d421f9a618
2 changed files with 3 additions and 1 deletions

View File

@@ -3110,6 +3110,8 @@ def evaluateCode(code, variables=None):
try:
exec(code, variables)
except KeyboardInterrupt:
raise
except Exception, ex:
errMsg = "an error occured while evaluating provided code ('%s'). " % ex
raise sqlmapGenericException, errMsg