minor update related to r2401

This commit is contained in:
Miroslav Stampar 2010-11-17 20:50:31 +00:00
parent 360aff7a4d
commit ca5125bbe0

View File

@ -7,10 +7,7 @@ Copyright (c) 2006-2010 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission See the file 'doc/COPYING' for copying permission
""" """
try: from lib.core.exception import sqlmapMissingDependence
import sqlite3
except ImportError, _:
pass
class Replication: class Replication:
""" """
@ -19,6 +16,12 @@ class Replication:
""" """
def __init__(self, dbpath): def __init__(self, dbpath):
try:
import sqlite3
except ImportError, _:
errMsg = "missing module 'sqlite3' needed by --replicate switch"
raise sqlmapMissingDependence, errMsg
self.dbpath = dbpath self.dbpath = dbpath
self.connection = sqlite3.connect(dbpath) self.connection = sqlite3.connect(dbpath)
self.connection.isolation_level = None self.connection.isolation_level = None