Fix for an Issue #438

This commit is contained in:
stamparm 2013-04-19 10:14:28 +02:00
parent 0cb3ce5765
commit 6e0aaafdea

View File

@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
"""
import bdb
import logging
import os
import sys
import time
@ -21,6 +22,7 @@ from lib.controller.controller import start
from lib.core.common import banner
from lib.core.common import dataToStdout
from lib.core.common import getUnicode
from lib.core.common import setColor
from lib.core.common import setPaths
from lib.core.common import weAreFrozen
from lib.core.data import cmdLineOptions
@ -115,7 +117,8 @@ def main():
print
errMsg = unhandledExceptionMessage()
logger.critical(errMsg)
traceback.print_exc()
kb.stickyLevel = logging.CRITICAL
dataToStdout(setColor(traceback.format_exc()))
finally:
dataToStdout("\n[*] shutting down at %s\n\n" % time.strftime("%X"), forceOutput=True)