Skip to content

Commit 6e0aaaf

Browse files
committed
Fix for an Issue sqlmapproject#438
1 parent 0cb3ce5 commit 6e0aaaf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqlmap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import bdb
9+
import logging
910
import os
1011
import sys
1112
import time
@@ -21,6 +22,7 @@
2122
from lib.core.common import banner
2223
from lib.core.common import dataToStdout
2324
from lib.core.common import getUnicode
25+
from lib.core.common import setColor
2426
from lib.core.common import setPaths
2527
from lib.core.common import weAreFrozen
2628
from lib.core.data import cmdLineOptions
@@ -115,7 +117,8 @@ def main():
115117
print
116118
errMsg = unhandledExceptionMessage()
117119
logger.critical(errMsg)
118-
traceback.print_exc()
120+
kb.stickyLevel = logging.CRITICAL
121+
dataToStdout(setColor(traceback.format_exc()))
119122

120123
finally:
121124
dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True)

0 commit comments

Comments
 (0)