Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 311444a

Browse files
committed
Update related to the #2677
1 parent 4e61113 commit 311444a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ def parseTargetDirect():
13651365
import pyodbc
13661366
elif dbmsName == DBMS.FIREBIRD:
13671367
import kinterbasdb
1368-
except ImportError:
1368+
except:
13691369
if _sqlalchemy and data[3] in _sqlalchemy.dialects.__all__:
13701370
pass
13711371
else:

lib/utils/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def checkDependencies():
4646
__import__("jpype")
4747
elif dbmsName == DBMS.INFORMIX:
4848
__import__("ibm_db_dbi")
49-
except ImportError:
49+
except:
5050
warnMsg = "sqlmap requires '%s' third-party library " % data[1]
5151
warnMsg += "in order to directly connect to the DBMS "
5252
warnMsg += "'%s'. Download from %s" % (dbmsName, data[2])

0 commit comments

Comments
 (0)