minor update for multithreaded mode

This commit is contained in:
Miroslav Stampar 2012-01-13 15:50:38 +00:00
parent accac776fe
commit ff96c537a9

View File

@ -168,19 +168,10 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
if forwardException: if forwardException:
raise raise
except (sqlmapConnectionException, sqlmapValueException), errMsg: except Exception, errMsg:
print print
kb.threadException = True kb.threadException = True
logger.error("thread %s: %s" % (threading.currentThread().getName(), errMsg)) logger.error("thread %s: '%s'" % (threading.currentThread().getName(), errMsg))
except:
from lib.core.common import unhandledExceptionMessage
print
kb.threadException = True
errMsg = unhandledExceptionMessage()
logger.error("thread %s: %s" % (threading.currentThread().getName(), errMsg))
traceback.print_exc()
finally: finally:
kb.multiThreadMode = False kb.multiThreadMode = False