From 360aff7a4d8e322870ce819977585f09e10a2758 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 17 Nov 2010 17:20:32 +0000 Subject: [PATCH] sqlite3 library is not part of Gentoo (perhaps others) Python packages or installation bundle --- doc/THANKS | 3 +++ lib/core/replication.py | 5 ++++- plugins/dbms/sqlite/connector.py | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/THANKS b/doc/THANKS index ae1c96878..194bc788b 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -212,6 +212,9 @@ Nico Leidecker Gabriel Lima for reporting a couple of bugs +Mark Lowe + for reporting a bug + Truong Duc Luong for reporting a minor bug diff --git a/lib/core/replication.py b/lib/core/replication.py index c79a21696..57c493a62 100644 --- a/lib/core/replication.py +++ b/lib/core/replication.py @@ -7,7 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/) See the file 'doc/COPYING' for copying permission """ -import sqlite3 +try: + import sqlite3 +except ImportError, _: + pass class Replication: """ diff --git a/plugins/dbms/sqlite/connector.py b/plugins/dbms/sqlite/connector.py index fb554a707..0414a9626 100644 --- a/plugins/dbms/sqlite/connector.py +++ b/plugins/dbms/sqlite/connector.py @@ -7,7 +7,10 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/) See the file 'doc/COPYING' for copying permission """ -import sqlite3 +try: + import sqlite3 +except ImportError, _: + pass from lib.core.convert import utf8encode from lib.core.data import conf