Skip to content

Commit 1f82d95

Browse files
committed
Minor patch
1 parent 15d9c8f commit 1f82d95

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from 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"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/threads.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from __future__ import print_function
99

1010
import difflib
11+
import sqlite3
1112
import threading
1213
import time
1314
import 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

0 commit comments

Comments
 (0)