minor update

This commit is contained in:
Miroslav Stampar
2011-06-07 10:32:18 +00:00
parent e9bf768f23
commit 50dde39e68
2 changed files with 6 additions and 5 deletions

View File

@@ -60,9 +60,10 @@ def exceptionHandledFunction(threadFunction):
kb.threadContinue = False
kb.threadException = True
raise
except:
kb.threadContinue = False
kb.threadException = True
except Exception, errMsg:
# thread is just going to be silently killed
print
logger.error("thread %s: %s" % (threading.currentThread().getName(), errMsg))
def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardException=True, threadChoice=False):
threads = []