mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Appropriate error messaging when one of core libraries are missing due to erroneous Python build
This commit is contained in:
parent
4d9f8ad0dd
commit
31efabfca1
|
@ -12,18 +12,18 @@ import StringIO
|
|||
import struct
|
||||
|
||||
try:
|
||||
import bz2
|
||||
import gzip
|
||||
import sqlite3
|
||||
import zlib
|
||||
except ImportError:
|
||||
import lib.core.settings
|
||||
except ImportError, ex:
|
||||
from lib.core.data import logger
|
||||
|
||||
lib.core.settings.HTTP_ACCEPT_ENCODING_HEADER_VALUE = "identity"
|
||||
|
||||
errMsg = "turning off support for HTTP compressed encodings "
|
||||
errMsg += "because of lack of python compression "
|
||||
errMsg += "modules ('gzip, zlib')"
|
||||
errMsg = "missing core libraries (bz2, gzip, sqlite3, zlib) "
|
||||
errMsg += "probably because current version of Python has been "
|
||||
errMsg += "built without appropriate dev packages"
|
||||
logger.critical(errMsg)
|
||||
raise SystemExit
|
||||
|
||||
from lib.core.common import extractErrorMessage
|
||||
from lib.core.common import extractRegexResult
|
||||
|
|
Loading…
Reference in New Issue
Block a user