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:
Miroslav Stampar
2013-04-15 18:42:26 +02:00
parent de99717b00
commit 840ee26a14
2 changed files with 2 additions and 6 deletions

View File

@@ -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