diff --git a/lib/controller/handler.py b/lib/controller/handler.py index 02caa563b..b7be30f87 100644 --- a/lib/controller/handler.py +++ b/lib/controller/handler.py @@ -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 diff --git a/lib/utils/sqlalchemy.py b/lib/utils/sqlalchemy.py index eb5ba37ec..452b8e487 100644 --- a/lib/utils/sqlalchemy.py +++ b/lib/utils/sqlalchemy.py @@ -36,7 +36,7 @@ class SQLAlchemy(GenericConnector): try: if not self.port and self.db: if not os.path.exists(self.db): - raise SqlmapFilePathException, "missing database file '%s'" % self.db + raise SqlmapFilePathException, "the provided database file '%s' does not exist" % self.db _ = conf.direct.split("//", 1) conf.direct = "%s////%s" % (_[0], os.path.abspath(self.db))