mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Taking some goodies from Pull request #284
This commit is contained in:
@@ -7,7 +7,7 @@ See the file 'doc/COPYING' for copying permission
|
||||
|
||||
try:
|
||||
import sqlite3
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import logging
|
||||
@@ -53,7 +53,7 @@ class Connector(GenericConnector):
|
||||
try:
|
||||
try:
|
||||
import sqlite
|
||||
except ImportError, _:
|
||||
except ImportError:
|
||||
errMsg = "sqlmap requires 'python-sqlite2' third-party library "
|
||||
errMsg += "in order to directly connect to the database '%s'" % self.db
|
||||
raise sqlmapMissingDependence, errMsg
|
||||
|
||||
Reference in New Issue
Block a user