File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from thirdparty .six import unichr as _unichr
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.7.2.11 "
23+ VERSION = "1.7.2.12 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 88from __future__ import print_function
99
1010import difflib
11+ import sqlite3
1112import threading
1213import time
1314import traceback
@@ -227,16 +228,19 @@ def _threadFunction():
227228 if conf .get ("verbose" ) > 1 and isinstance (ex , SqlmapValueException ):
228229 traceback .print_exc ()
229230
230- except :
231+ except Exception as ex :
231232 print ()
232233
233234 if not kb .multipleCtrlC :
234- from lib .core .common import unhandledExceptionMessage
235-
236- kb .threadException = True
237- errMsg = unhandledExceptionMessage ()
238- logger .error ("thread %s: %s" % (threading .currentThread ().getName (), errMsg ))
239- traceback .print_exc ()
235+ if isinstance (ex , sqlite3 .Error ):
236+ raise
237+ else :
238+ from lib .core .common import unhandledExceptionMessage
239+
240+ kb .threadException = True
241+ errMsg = unhandledExceptionMessage ()
242+ logger .error ("thread %s: %s" % (threading .currentThread ().getName (), errMsg ))
243+ traceback .print_exc ()
240244
241245 finally :
242246 kb .multiThreadMode = False
You can’t perform that action at this time.
0 commit comments