Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 962d63e

Browse files
committed
Improved the message to display in case of unhandled exception
1 parent 892a7b2 commit 962d63e

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

lib/core/exception.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525

2626

27+
import sys
28+
29+
from lib.core.settings import VERSION
2730
from lib.core.settings import VERSION_STRING
2831

2932

@@ -85,9 +88,11 @@ class sqlmapValueException(Exception):
8588

8689
def unhandledException():
8790
errMsg = "unhandled exception in %s, please copy " % VERSION_STRING
88-
errMsg += "this and the following traceback and send us by email. "
89-
errMsg += "We will fix it as soon as possible:"
90-
91+
errMsg += "the command line and the following text and send us "
92+
errMsg += "by email. We will fix it as soon as possible:\n"
93+
errMsg += "sqlmap version: %s\n" % VERSION
94+
errMsg += "Python version: %s\n" % sys.version.split()[0]
95+
errMsg += "Operating system: %s" % sys.platform
9196
return errMsg
9297

9398

0 commit comments

Comments
 (0)