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()