Skip to content

Commit eb2e78b

Browse files
committed
Fixes #3717
1 parent e6496db commit eb2e78b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import base64
1414
import binascii
1515
import codecs
16+
import collections
1617
import json
1718
import re
1819
import sys
@@ -24,7 +25,6 @@
2425
from lib.core.settings import IS_WIN
2526
from lib.core.settings import NULL
2627
from lib.core.settings import PICKLE_PROTOCOL
27-
from lib.core.settings import PYVERSION
2828
from lib.core.settings import SAFE_HEX_MARKER
2929
from lib.core.settings import UNICODE_ENCODING
3030
from thirdparty import six
@@ -97,7 +97,7 @@ def singleTimeWarnMessage(message): # Cross-referenced function
9797
sys.stdout.flush()
9898

9999
def filterNone(values): # Cross-referenced function
100-
raise NotImplementedError
100+
return [_ for _ in values if _] if isinstance(values, collections.Iterable) else values
101101

102102
def isListLike(value): # Cross-referenced function
103103
raise NotImplementedError

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.141"
21+
VERSION = "1.3.5.142"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)