diff --git a/Module.py b/Module.py index 7835cd3..8808167 100644 --- a/Module.py +++ b/Module.py @@ -174,7 +174,7 @@ class Module(object): """ dbfile = self.config.get('dr.botzo', 'database') - conn = sqlite3.connect(dbfile) + conn = sqlite3.connect(dbfile, isolation_level=None) conn.row_factory = sqlite3.Row # setup regexp function in sqlite diff --git a/dr.botzo.py b/dr.botzo.py index 1c6b016..6caa491 100644 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -60,7 +60,7 @@ try: # make sure we can initialize the database, if such a thing is # called for in the config file dbfile = config.get('dr.botzo', 'database') - conn = sqlite3.connect(dbfile) + conn = sqlite3.connect(dbfile, isolation_level=None) try: query = """ SELECT COUNT(*)