Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 282d4b2

Browse files
committed
Minor cleanup
1 parent 9289939 commit 282d4b2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
from lib.core.settings import HTTP_CHUNKED_SPLIT_KEYWORDS
125125
from lib.core.settings import IGNORE_SAVE_OPTIONS
126126
from lib.core.settings import INFERENCE_UNKNOWN_CHAR
127-
from lib.core.settings import INVALID_UNICODE_CHAR_FORMAT
128127
from lib.core.settings import INVALID_UNICODE_PRIVATE_AREA
129128
from lib.core.settings import IP_ADDRESS_REGEX
130129
from lib.core.settings import ISSUES_PAGE
@@ -2421,7 +2420,7 @@ def getUnicode(value, encoding=None, noneToNull=False):
24212420

24222421
try:
24232422
return six.text_type(value, encoding or (kb.get("pageEncoding") if kb.get("originalPage") else None) or UNICODE_ENCODING)
2424-
except UnicodeDecodeError as ex:
2423+
except UnicodeDecodeError:
24252424
return six.text_type(value, UNICODE_ENCODING, errors="reversible")
24262425
elif isListLike(value):
24272426
value = list(getUnicode(_, encoding, noneToNull) for _ in value)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.4.20"
20+
VERSION = "1.3.4.22"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
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)