mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 19:34:13 +03:00
Getting rid of those ugly warning messages
This commit is contained in:
parent
ba4ed30eed
commit
bc4e1dab19
|
@ -18,6 +18,12 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
import MySQLdb # used by SQLAlchemy in case of MySQL
|
||||||
|
warnings.filterwarnings("error", category=MySQLdb.Warning)
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
from lib.core.exception import SqlmapConnectionException
|
from lib.core.exception import SqlmapConnectionException
|
||||||
|
|
Loading…
Reference in New Issue
Block a user