This commit is contained in:
Miroslav Stampar
2017-01-18 10:19:23 +01:00
parent 138aa6db65
commit 1e7a453ff6
3 changed files with 5 additions and 6 deletions

View File

@@ -7,12 +7,11 @@ See the file 'doc/COPYING' for copying permission
import difflib
import random
import thread
import threading
import time
import traceback
from thread import error as ThreadError
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -151,7 +150,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio
try:
thread.start()
except ThreadError, ex:
except thread.error, ex:
errMsg = "error occurred while starting new thread ('%s')" % ex.message
logger.critical(errMsg)
break