added some more info to unhandled exception message(s)

This commit is contained in:
Miroslav Stampar
2011-01-28 16:15:45 +00:00
parent a184a4c772
commit ddd296030d
4 changed files with 22 additions and 24 deletions

View File

@@ -7,13 +7,6 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.settings import PLATFORM
from lib.core.settings import PYVERSION
from lib.core.settings import VERSION
from lib.core.settings import REVISION
from lib.core.settings import VERSION_STRING
class sqlmapConnectionException(Exception):
pass
@@ -68,19 +61,6 @@ class sqlmapUnsupportedFeatureException(Exception):
class sqlmapValueException(Exception):
pass
def unhandledException():
errMsg = "unhandled exception in %s, retry your " % VERSION_STRING
errMsg += "run with the latest development version from the Subversion "
errMsg += "repository. If the exception persists, please send by e-mail "
errMsg += "to sqlmap-users@lists.sourceforge.net the command line, the "
errMsg += "following text and any information needed to reproduce the "
errMsg += "bug. The developers will try to reproduce the bug, fix it "
errMsg += "accordingly and get back to you.\n"
errMsg += "sqlmap version: %s%s\n" % (VERSION, " (r%d)" % REVISION if REVISION else "")
errMsg += "Python version: %s\n" % PYVERSION
errMsg += "Operating system: %s" % PLATFORM
return errMsg
exceptionsTuple = (
sqlmapConnectionException,
sqlmapDataException,