diff --git a/lib/core/common.py b/lib/core/common.py index eaf513456..f4bc56307 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1365,7 +1365,7 @@ def parseTargetDirect(): import pyodbc elif dbmsName == DBMS.FIREBIRD: import kinterbasdb - except ImportError: + except: if _sqlalchemy and data[3] in _sqlalchemy.dialects.__all__: pass else: diff --git a/lib/utils/deps.py b/lib/utils/deps.py index 63f7b5f37..4f5ef3715 100644 --- a/lib/utils/deps.py +++ b/lib/utils/deps.py @@ -46,7 +46,7 @@ def checkDependencies(): __import__("jpype") elif dbmsName == DBMS.INFORMIX: __import__("ibm_db_dbi") - except ImportError: + except: warnMsg = "sqlmap requires '%s' third-party library " % data[1] warnMsg += "in order to directly connect to the DBMS " warnMsg += "'%s'. Download from %s" % (dbmsName, data[2])