File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.7.2.11 "
23
+ VERSION = "1.7.2.12 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_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 8
8
from __future__ import print_function
9
9
10
10
import difflib
11
+ import sqlite3
11
12
import threading
12
13
import time
13
14
import traceback
@@ -227,16 +228,19 @@ def _threadFunction():
227
228
if conf .get ("verbose" ) > 1 and isinstance (ex , SqlmapValueException ):
228
229
traceback .print_exc ()
229
230
230
- except :
231
+ except Exception as ex :
231
232
print ()
232
233
233
234
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 ()
240
244
241
245
finally :
242
246
kb .multiThreadMode = False
You can’t perform that action at this time.
0 commit comments