mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Patch for an Issue #510
This commit is contained in:
parent
6cc0cf3702
commit
c586559e30
|
@ -14,8 +14,10 @@ import warnings
|
||||||
_sqlalchemy = None
|
_sqlalchemy = None
|
||||||
try:
|
try:
|
||||||
f, pathname, desc = imp.find_module("sqlalchemy", sys.path[1:])
|
f, pathname, desc = imp.find_module("sqlalchemy", sys.path[1:])
|
||||||
_sqlalchemy = imp.load_module("sqlalchemy", f, pathname, desc)
|
_ = imp.load_module("sqlalchemy", f, pathname, desc)
|
||||||
warnings.simplefilter(action="ignore", category=_sqlalchemy.exc.SAWarning)
|
if hasattr(_, "dialects"):
|
||||||
|
_sqlalchemy = _
|
||||||
|
warnings.simplefilter(action="ignore", category=_sqlalchemy.exc.SAWarning)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user