Getting rid of those ugly warning messages

This commit is contained in:
stamparm 2013-05-28 11:24:34 +02:00
parent ba4ed30eed
commit bc4e1dab19

View File

@ -18,6 +18,12 @@ try:
except ImportError:
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 logger
from lib.core.exception import SqlmapConnectionException