diff --git a/lib/core/common.py b/lib/core/common.py index 15be2daf7..3c78c5d65 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -124,7 +124,6 @@ from lib.core.settings import HOST_ALIASES from lib.core.settings import HTTP_CHUNKED_SPLIT_KEYWORDS from lib.core.settings import IGNORE_SAVE_OPTIONS from lib.core.settings import INFERENCE_UNKNOWN_CHAR -from lib.core.settings import INVALID_UNICODE_CHAR_FORMAT from lib.core.settings import INVALID_UNICODE_PRIVATE_AREA from lib.core.settings import IP_ADDRESS_REGEX from lib.core.settings import ISSUES_PAGE @@ -2421,7 +2420,7 @@ def getUnicode(value, encoding=None, noneToNull=False): try: return six.text_type(value, encoding or (kb.get("pageEncoding") if kb.get("originalPage") else None) or UNICODE_ENCODING) - except UnicodeDecodeError as ex: + except UnicodeDecodeError: return six.text_type(value, UNICODE_ENCODING, errors="reversible") elif isListLike(value): value = list(getUnicode(_, encoding, noneToNull) for _ in value) diff --git a/lib/core/settings.py b/lib/core/settings.py index eb52a52d5..8d506bc33 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.4.20" +VERSION = "1.3.4.22" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)