From 8c1d10e8f3f799f25ca103ae83ae503b8d1a0e7e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 2 Jul 2011 11:50:31 +0200 Subject: [PATCH] MoobotFactoids: Use when opening the database. --- plugins/MoobotFactoids/plugin.py | 4 ++-- src/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/MoobotFactoids/plugin.py b/plugins/MoobotFactoids/plugin.py index 1063c63dd..8212c8306 100644 --- a/plugins/MoobotFactoids/plugin.py +++ b/plugins/MoobotFactoids/plugin.py @@ -109,11 +109,11 @@ class SqliteMoobotDB(object): filename = plugins.makeChannelFilename(self.filename, channel) if os.path.exists(filename): - db = sqlite3.connect(filename) + db = sqlite3.connect(filename, check_same_thread=False) db.text_factory = str self.dbs[channel] = db return db - db = sqlite3.connect(filename) + db = sqlite3.connect(filename, check_same_thread=False) db.text_factory = str self.dbs[channel] = db cursor = db.cursor() diff --git a/src/version.py b/src/version.py index 40938fbc5..d21cb0a28 100644 --- a/src/version.py +++ b/src/version.py @@ -1,3 +1,3 @@ """stick the various versioning attributes in here, so we only have to change them once.""" -version = '0.83.4.1+limnoria (2011-06-25T15:15:16+0200)' +version = '0.83.4.1+limnoria (2011-07-02T11:50:30+0200)'