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:
raise
except (sqlmapConnectionException, sqlmapValueException), errMsg:
except Exception, errMsg:
print
kb.threadException = True
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()
logger.error("thread %s: '%s'" % (threading.currentThread().getName(), errMsg))
finally:
kb.multiThreadMode = False