mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
If SQLAlchemy is available and it has problems while connecting then it should be smarter to not force the other (standard) method - if available
This commit is contained in:
@@ -83,11 +83,7 @@ def setHandler():
|
||||
|
||||
dialect = DBMS_DICT[name][3]
|
||||
sqlalchemy = SQLAlchemy(dialect=dialect)
|
||||
|
||||
try:
|
||||
sqlalchemy.connect()
|
||||
except SqlmapConnectionException, msg:
|
||||
logger.critical(msg)
|
||||
sqlalchemy.connect()
|
||||
|
||||
if sqlalchemy.connector:
|
||||
conf.dbmsConnector = sqlalchemy
|
||||
|
||||
Reference in New Issue
Block a user