mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
added some more info to unhandled exception message(s)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user