Getting back revision number - displayed like in GitHub commits (Issue #52)

This commit is contained in:
Miroslav Stampar
2012-07-02 13:01:20 +02:00
parent add8352804
commit 8eefe4b71f
4 changed files with 23 additions and 55 deletions

View File

@@ -2489,7 +2489,7 @@ def unhandledExceptionMessage():
errMsg += "and any information required to reproduce the bug. The "
errMsg += "developers will try to reproduce the bug, fix it accordingly "
errMsg += "and get back to you.\n"
errMsg += "sqlmap version: %s%s\n" % (VERSION, " (r%d)" % REVISION if REVISION else "")
errMsg += "sqlmap version: %s%s\n" % (VERSION, " (%s)" % REVISION if REVISION else "")
errMsg += "Python version: %s\n" % PYVERSION
errMsg += "Operating system: %s\n" % PLATFORM
errMsg += "Command line: %s\n" % " ".join(sys.argv)