Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23d7820

Browse files
committed
minor update
1 parent 6fd8602 commit 23d7820

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/threads.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def getCurrentThreadData():
4949
kb.threadData[threadUID] = ThreadData()
5050
return kb.threadData[threadUID]
5151

52-
def runThreads(numThreads, threadFunction, cleanupFunction=None):
52+
def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardException=True):
5353
threads = []
5454

5555
kb.threadContinue = True
@@ -94,6 +94,9 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None):
9494
except KeyboardInterrupt:
9595
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
9696

97+
if forwardException:
98+
raise
99+
97100
finally:
98101
kb.threadContinue = True
99102
kb.threadException = False

0 commit comments

Comments
 (0)