From d5cddd40f68f1426cf8afcc83dba0721d2891203 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 23 Nov 2011 03:03:31 +0000 Subject: [PATCH] minor fix --- lib/core/threads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/threads.py b/lib/core/threads.py index bb33d2bd4..072d99129 100644 --- a/lib/core/threads.py +++ b/lib/core/threads.py @@ -181,7 +181,8 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio kb.threadContinue = True kb.threadException = False - conf.hashDB.flush(True) + if conf.get('hashDB', None): + conf.hashDB.flush(True) if cleanupFunction: cleanupFunction()