This commit is contained in:
Miroslav Stampar 2016-02-15 00:00:37 +01:00
parent 4ee0495352
commit 08d733cf02

View File

@ -12,6 +12,7 @@ import os
import re
import shutil
import sys
import thread
import time
import traceback
import warnings
@ -109,7 +110,15 @@ def main():
elif conf.liveTest:
liveTest()
else:
start()
try:
start()
except thread.error as ex:
if "can't start new thread" in getSafeExString(ex):
errMsg = "unable to start new threads. Please check OS (u)limits"
logger.critical(errMsg)
raise SystemExit
else:
raise
except SqlmapUserQuitException:
errMsg = "user quit"
@ -130,7 +139,6 @@ def main():
logger.critical(errMsg)
except KeyboardInterrupt:
pass
raise SystemExit
except KeyboardInterrupt: